Update metricstore documentation

Entire-Checkpoint: 99f20c1edd90
This commit is contained in:
2026-03-29 21:38:04 +02:00
parent fc47b12fed
commit 66707bbf15
4 changed files with 23 additions and 10 deletions

View File

@@ -400,8 +400,9 @@ func walShardIndexFromDir(hostDir string) int {
return walShardIndex(cluster, node)
}
// RotateWALFiles sends rotation requests for the given host directories
// and blocks until all rotations complete.
// RotateWALFilesAfterShutdown directly removes current.wal files for the given
// host directories. Used after shutdown, when WALStaging goroutines have already
// exited and the channel-based RotateWALFiles is no longer safe to call.
func RotateWALFilesAfterShutdown(hostDirs []string) {
for _, dir := range hostDirs {
walPath := path.Join(dir, "current.wal")