Fix rollover issue under load

This commit is contained in:
Ben Johnson
2020-12-23 13:10:04 -07:00
parent 5218a1f2c2
commit 9fe52ce3f5
2 changed files with 36 additions and 12 deletions

View File

@@ -99,7 +99,7 @@ func ParseWALFilename(name string) (index int, err error) {
func FormatWALFilename(index int) string {
assert(index >= 0, "wal index must be non-negative")
return fmt.Sprintf("%016d%s", index, WALExt)
return fmt.Sprintf("%016x%s", index, WALExt)
}
// HexDump returns hexdump output but with duplicate lines removed.