0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-02 10:08:56 +02:00

ircd::db: Deprecate gopts::seqnum/iter_start_seqnum per RocksDB 7.x.

This commit is contained in:
Jason Volk 2022-06-15 10:54:48 -07:00
parent 9d0d45294c
commit 58a346f18b
2 changed files with 4 additions and 3 deletions

View file

@ -87,7 +87,7 @@ struct ircd::db::gopts
const rocksdb::Slice *lower_bound { nullptr };
const rocksdb::Slice *upper_bound { nullptr };
size_t readahead { 0 };
uint64_t seqnum { 0 };
[[deprecated]] uint64_t seqnum { 0 };
using opts<get>::opts;
};

View file

@ -5277,7 +5277,7 @@ ircd::db::make_opts(const gopts &opts)
rocksdb::ReadOptions ret;
assume(ret.iterate_lower_bound == nullptr);
assume(ret.iterate_upper_bound == nullptr);
assume(ret.iter_start_seqnum == 0);
//assume(ret.iter_start_seqnum == 0);
assume(ret.pin_data == false);
assume(ret.fill_cache == true);
assume(ret.total_order_seek == false);
@ -5294,7 +5294,8 @@ ircd::db::make_opts(const gopts &opts)
// have the same prefix because ordering is not guaranteed between prefixes
ret.iterate_lower_bound = opts.lower_bound;
ret.iterate_upper_bound = opts.upper_bound;
ret.iter_start_seqnum = opts.seqnum;
//ret.iter_start_seqnum = opts.seqnum;
assert(opts.seqnum == 0);
ret.verify_checksums = bool(read_checksum);
if(test(opts, get::CHECKSUM) && !test(opts, get::NO_CHECKSUM))