Files
6296504d5d lib/storage: implement partition index (#8134)
This should reduce disk space occupied by indexDBs as they get deleted along
with the corresponding partitions once those partitions become outside the
retention window.

- Motivation: https://github.com/VictoriaMetrics/VictoriaMetrics/issues/7599
- What to expect: https://github.com/VictoriaMetrics/VictoriaMetrics/issues/8134

Signed-off-by: Artem Fetishev <[email protected]>
Co-authored-by: Andrei Baidarov <[email protected]>
2025-12-24 18:53:49 +01:00

16 lines
494 B
Go

package mergeset
import (
"time"
"github.com/VictoriaMetrics/VictoriaMetrics/lib/logger"
)
// LegacyMustCreateSnapshotAt is used for creating snapshots for legacy IndexDBs.
func (tb *Table) LegacyMustCreateSnapshotAt(dstDir string) {
logger.Infof("creating legacy IndexDB snapshot of %q...", tb.path)
startTime := time.Now()
tb.MustCreateSnapshotAt(dstDir)
logger.Infof("created legacy IndexDB snapshot of %q at %q in %.3f seconds", tb.path, dstDir, time.Since(startTime).Seconds())
}