mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Fixed temporary path for part being erased.
This commit is contained in:
parent
3f11569d94
commit
2d749630b7
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user