MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / Compact

Method Compact

driver/hybriddb/db.go:304–311  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

302}
303
304func (db *DB) Compact() error {
305 db.mu.Lock()
306 defer db.mu.Unlock()
307 return db.db.CompactRange(util.Range{
308 Start: nil,
309 Limit: nil,
310 })
311}
312
313func (db *DB) GetStats() *Stats {
314 db.mu.RLock()

Callers 1

TestDB_CompactFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestDB_CompactFunction · 0.36