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

Method Repair

driver/hybriddb/db.go:72–79  ·  view source on GitHub ↗
(path string, cfg *config.Config)

Source from the content-addressed store, hash-verified

70}
71
72func (s Store) Repair(path string, cfg *config.Config) error {
73 db, err := leveldb.RecoverFile(path, newOptions(&cfg.LevelDB))
74 if err != nil {
75 return err
76 }
77 defer db.Close()
78 return nil
79}
80
81type DB struct {
82 path string

Callers 1

TestDB_RepairFunction · 0.45

Calls 2

newOptionsFunction · 0.70
CloseMethod · 0.65

Tested by 1

TestDB_RepairFunction · 0.36