rocksdb/db/db_impl
Changyu Bi cd6f802ccb Add a new file ingestion option link_files (#12980)
Summary:
Add option `IngestExternalFileOptions::link_files` that hard links input files and preserves original file links after ingestion, unlike `move_files` which will unlink input files after ingestion. This can be useful when being used together with `allow_db_generated_files` to ingest files from another DB. Also reverted the change to `move_files` in https://github.com/facebook/rocksdb/issues/12959 to simplify the contract so that it will always unlink input files without exception.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/12980

Test Plan: updated unit test `ExternSSTFileLinkFailFallbackTest.LinkFailFallBackExternalSst` to test that input files will not be unlinked.

Reviewed By: pdillinger

Differential Revision: D61925111

Pulled By: cbi42

fbshipit-source-id: eadaca72e1ae5288bdd195d57158466e5656fa62
2024-09-03 13:06:25 -07:00
..
compacted_db_impl.cc
compacted_db_impl.h
db_impl.cc Add a new file ingestion option link_files (#12980) 2024-09-03 13:06:25 -07:00
db_impl.h Fix file deletions in DestroyDB not rate limited (#12891) 2024-08-02 19:31:55 -07:00
db_impl_compaction_flush.cc
db_impl_debug.cc Fix file deletions in DestroyDB not rate limited (#12891) 2024-08-02 19:31:55 -07:00
db_impl_experimental.cc
db_impl_files.cc Options for file temperature for more files (#12957) 2024-08-23 19:49:25 -07:00
db_impl_follower.cc
db_impl_follower.h
db_impl_open.cc Options for file temperature for more files (#12957) 2024-08-23 19:49:25 -07:00
db_impl_readonly.cc
db_impl_readonly.h
db_impl_secondary.cc
db_impl_secondary.h
db_impl_write.cc