mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-14 03:30:36 +00:00
Add test that no redundant image are generatd if them are wanted by GC
This commit is contained in:
@@ -623,6 +623,9 @@ impl ImageLayerWriterInner {
|
||||
lsn: self.lsn,
|
||||
},
|
||||
);
|
||||
if final_path.exists() {
|
||||
warn!("Overwrite existed image layer {}", final_path.display());
|
||||
}
|
||||
std::fs::rename(self.path, final_path)?;
|
||||
|
||||
trace!("created image layer {}", layer.path().display());
|
||||
|
||||
Reference in New Issue
Block a user