[update] add comments in freezeRemote to exolain empty files_to_copy_intead_of_hardlinks param in Backup()

This commit is contained in:
unashi 2024-05-29 10:31:15 +08:00
parent f87ab5aab7
commit eeeb6dbd12

View File

@ -512,6 +512,8 @@ MutableDataPartStoragePtr DataPartStorageOnDiskBase::freezeRemote(
else else
dst_disk->createDirectories(to); dst_disk->createDirectories(to);
/// freezeRemote() using copy instead of hardlinks for all files
/// In this case, files_to_copy_intead_of_hardlinks is set by empty
Backup( Backup(
src_disk, src_disk,
dst_disk, dst_disk,
@ -522,7 +524,7 @@ MutableDataPartStoragePtr DataPartStorageOnDiskBase::freezeRemote(
params.make_source_readonly, params.make_source_readonly,
/* max_level= */ {}, /* max_level= */ {},
true, true,
{}, /* files_to_copy_intead_of_hardlinks= */ {},
params.external_transaction); params.external_transaction);
/// The save_metadata_callback function acts on the target dist. /// The save_metadata_callback function acts on the target dist.