Skip to content

Commit a2471dc

Browse files
committed
remove to_compact on recovery
1 parent 179e765 commit a2471dc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • libsql-server/src/replication/primary

libsql-server/src/replication/primary/logger.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -935,6 +935,9 @@ impl ReplicationLogger {
935935
let snapshot_path = data_path.parent().unwrap().join("snapshots");
936936
// best effort, there may be no snapshots
937937
let _ = remove_dir_all(snapshot_path);
938+
let to_compact_path = data_path.parent().unwrap().join("to_compact");
939+
// best effort, there may nothing to compact
940+
let _ = remove_dir_all(to_compact_path);
938941

939942
let data_file = File::open(&data_path)?;
940943
let size = data_path.metadata()?.len();

0 commit comments

Comments
 (0)