0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-25 21:38:18 +02:00

ircd::db: Don't silently refuse seek() when no snapshot.

This commit is contained in:
Jason Volk 2018-02-05 15:16:29 -08:00
parent 06816f9e33
commit 5cf77cf87c

View file

@ -2976,7 +2976,7 @@ ircd::db::cell::cell(column column,
gopts opts)
:c{std::move(column)}
,ss{opts.snapshot}
,it{ss && !index.empty()? seek(this->c, index, opts) : std::unique_ptr<rocksdb::Iterator>{}}
,it{!index.empty()? seek(this->c, index, opts) : std::unique_ptr<rocksdb::Iterator>{}}
{
if(bool(this->it))
if(!valid_eq(*this->it, index))