From a85c393d6f1277c3140adc321c841e42987fea6c Mon Sep 17 00:00:00 2001 From: HeYuchen Date: Wed, 5 Jan 2022 18:30:12 +0800 Subject: [PATCH] feat(bulk_load): set move_files as true while ingest files (#864) --- src/server/rocksdb_wrapper.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server/rocksdb_wrapper.cpp b/src/server/rocksdb_wrapper.cpp index 2974693eb8..a6db999bad 100644 --- a/src/server/rocksdb_wrapper.cpp +++ b/src/server/rocksdb_wrapper.cpp @@ -183,6 +183,7 @@ void rocksdb_wrapper::clear_up_write_batch() { _write_batch->Clear(); } int rocksdb_wrapper::ingestion_files(int64_t decree, const std::vector &sst_file_list) { rocksdb::IngestExternalFileOptions ifo; + ifo.move_files = true; rocksdb::Status s = _db->IngestExternalFile(sst_file_list, ifo); if (dsn_unlikely(!s.ok())) { derror_rocksdb("IngestExternalFile", s.ToString(), "decree = {}", decree);