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

Method Repair

driver/oss/db.go:100–108  ·  view source on GitHub ↗
(path string, cfg *config.Config)

Source from the content-addressed store, hash-verified

98}
99
100func (s Store) Repair(path string, cfg *config.Config) error {
101 db, err := leveldb.RecoverFile(path, newOptions(&cfg.LevelDB))
102 if err != nil {
103 return err
104 }
105
106 db.Close()
107 return nil
108}
109
110type DB struct {
111 path string

Callers

nothing calls this directly

Calls 2

newOptionsFunction · 0.70
CloseMethod · 0.65

Tested by

no test coverage detected