MCPcopy Create free account
hub / github.com/ByteStorage/FlyDB / getMergePath

Method getMergePath

engine/merge.go:162–169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

160}
161
162func (db *DB) getMergePath() string {
163 // Gets the database parent directory
164 parentDir := path.Dir(path.Clean(db.options.DirPath))
165 // DB base path
166 basePath := path.Base(db.options.DirPath)
167 // Return the merge file path
168 return filepath.Join(parentDir, basePath+mergeDirName)
169}
170
171// Load the merge data directory
172func (db *DB) loadMergeFiles() error {

Callers 2

MergeMethod · 0.95
loadMergeFilesMethod · 0.95

Calls 1

CleanMethod · 0.45

Tested by

no test coverage detected