From 772a78357c1cf8f17cf1804f122b819a79a86092 Mon Sep 17 00:00:00 2001 From: Virgil Date: Sat, 4 Apr 2026 13:10:33 +0000 Subject: [PATCH] fix(store): avoid compact archive filename collisions Co-Authored-By: Virgil --- compact.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compact.go b/compact.go index 2456029..3c912ad 100644 --- a/compact.go +++ b/compact.go @@ -215,6 +215,7 @@ func compactOutputPath(outputDirectory, format string) string { if format == "zstd" { extension = ".jsonl.zst" } - filename := core.Concat("journal-", time.Now().UTC().Format("20060102-150405"), extension) + // Include nanoseconds so two compactions in the same second never collide. + filename := core.Concat("journal-", time.Now().UTC().Format("20060102-150405.000000000"), extension) return joinPath(outputDirectory, filename) } -- 2.45.3