0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-01 13:18:58 +02:00

ircd::db: Tweak/automake ingestion options related.

This commit is contained in:
Jason Volk 2018-09-22 14:54:04 -07:00
parent e518bfc709
commit 3de9464058

View file

@ -7681,9 +7681,15 @@ ircd::db::ingest(column &column,
database::column &c(column);
rocksdb::IngestExternalFileOptions opts;
opts.allow_global_seqno = false;
opts.allow_global_seqno = true;
opts.allow_blocking_flush = false;
// Automatically determine if we can avoid issuing new sequence
// numbers by considering this ingestion as "backfill" of missing
// data which did actually exist but was physically removed.
const auto &copts{d.d->GetOptions(c)};
opts.ingest_behind = copts.allow_ingest_behind;
const std::vector<std::string> files
{
{ std::string{path} }