diff --git a/src/Core/Settings.h b/src/Core/Settings.h index 4ab4c07b68f..3aec590d0e0 100644 --- a/src/Core/Settings.h +++ b/src/Core/Settings.h @@ -669,8 +669,6 @@ class IColumn; M(Bool, allow_prefetched_read_pool_for_remote_filesystem, false, "Prefer prefethed threadpool if all parts are on remote filesystem", 0) \ M(Bool, allow_prefetched_read_pool_for_local_filesystem, false, "Prefer prefethed threadpool if all parts are on remote filesystem", 0) \ \ - M(Bool, local_object_storage_has_copy, true, "Allow to use copy command for LocalObjectStorage", 0) \ - \ M(UInt64, prefetch_buffer_size, DBMS_DEFAULT_BUFFER_SIZE, "The maximum size of the prefetch buffer to read from the filesystem.", 0) \ M(UInt64, filesystem_prefetch_step_bytes, 0, "Prefetch step in bytes. Zero means `auto` - approximately the best prefetch step will be auto deduced, but might not be 100% the best. The actual value might be different because of setting filesystem_prefetch_min_bytes_for_single_read_task", 0) \ M(UInt64, filesystem_prefetch_step_marks, 0, "Prefetch step in marks. Zero means `auto` - approximately the best prefetch step will be auto deduced, but might not be 100% the best. The actual value might be different because of setting filesystem_prefetch_min_bytes_for_single_read_task", 0) \ diff --git a/src/Disks/ObjectStorages/Local/LocalObjectStorage.cpp b/src/Disks/ObjectStorages/Local/LocalObjectStorage.cpp index 70039419ad1..010c2f48798 100644 --- a/src/Disks/ObjectStorages/Local/LocalObjectStorage.cpp +++ b/src/Disks/ObjectStorages/Local/LocalObjectStorage.cpp @@ -168,17 +168,10 @@ ObjectMetadata LocalObjectStorage::getObjectMetadata(const std::string & /* path void LocalObjectStorage::copyObject( // NOLINT const StoredObject & object_from, const StoredObject & object_to, std::optional /* object_to_attributes */) { - if (Context::getGlobalContextInstance()->getSettingsRef().local_object_storage_has_copy) - { - fs::copy(object_from.absolute_path, object_to.absolute_path); - } - else - { - auto in = readObject(object_from); - auto out = writeObject(object_to, WriteMode::Rewrite); - copyData(*in, *out); - out->finalize(); - } + auto in = readObject(object_from); + auto out = writeObject(object_to, WriteMode::Rewrite); + copyData(*in, *out); + out->finalize(); } void LocalObjectStorage::shutdown()