Skip to content

Commit

Permalink
feat(bulk_load): set move_files as true while ingest files (apache#864)
Browse files Browse the repository at this point in the history
  • Loading branch information
hycdong committed Jan 28, 2022
1 parent 6ca1199 commit a85c393
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/rocksdb_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::string> &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);
Expand Down

0 comments on commit a85c393

Please sign in to comment.