Fixed temporary path for part being erased.

This commit is contained in:
Vladimir Chebotarev 2020-01-14 14:21:16 +03:00
parent 3f11569d94
commit 2d749630b7

View File

@ -347,7 +347,7 @@ MergeTreeDataPart::~MergeTreeDataPart()
/// "Atomically" remove directory, leaving no inconsistent state.
Poco::Path source_path(path);
Poco::Path destination_path(path, "../stale_" + source_path.getBaseName());
Poco::Path destination_path(path, "../detached/stale_" + source_path.getBaseName());
dir.renameTo(destination_path.toString());
dir.remove(true);