summaryrefslogtreecommitdiff
path: root/utilities/env_mirror_test.cc
diff options
context:
space:
mode:
authorChangyu Bi <changyubi@meta.com>2024-09-03 13:06:25 -0700
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>2024-09-03 13:06:25 -0700
commitcd6f802ccb2f6f64263ba4b61134e3072d03a867 (patch)
tree1a10329532b8f7145978fa1fe13ebefa5281007e /utilities/env_mirror_test.cc
parent92ad4a88f3199b013532b37d6598c442319355a5 (diff)
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
Diffstat (limited to 'utilities/env_mirror_test.cc')
0 files changed, 0 insertions, 0 deletions