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:
parent
06816f9e33
commit
5cf77cf87c
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue