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:
parent
e518bfc709
commit
3de9464058
1 changed files with 7 additions and 1 deletions
|
@ -7681,9 +7681,15 @@ ircd::db::ingest(column &column,
|
||||||
database::column &c(column);
|
database::column &c(column);
|
||||||
|
|
||||||
rocksdb::IngestExternalFileOptions opts;
|
rocksdb::IngestExternalFileOptions opts;
|
||||||
opts.allow_global_seqno = false;
|
opts.allow_global_seqno = true;
|
||||||
opts.allow_blocking_flush = false;
|
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
|
const std::vector<std::string> files
|
||||||
{
|
{
|
||||||
{ std::string{path} }
|
{ std::string{path} }
|
||||||
|
|
Loading…
Reference in a new issue