Skip to content

Commit 1d374d7

Browse files
committed
fix: update ctime on data commits (streaming and flush paths)
1 parent 5c76789 commit 1d374d7

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/flush.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ async fn flush_batch(
275275
entry.size = size;
276276
entry.dirty = false;
277277
entry.mtime = now;
278+
entry.ctime = now;
278279
entry.pending_deletes.clear();
279280
}
280281
}

src/virtual_fs/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1859,7 +1859,9 @@ impl VirtualFs {
18591859
entry.xet_hash = Some(file_info.hash().to_string());
18601860
entry.size = file_info.file_size();
18611861
entry.dirty = false;
1862-
entry.mtime = SystemTime::now();
1862+
let now = SystemTime::now();
1863+
entry.mtime = now;
1864+
entry.ctime = now;
18631865
entry.pending_deletes.clear();
18641866
}
18651867

0 commit comments

Comments
 (0)