mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/mergeset: do not create flock.lock file at mergeset table, since it is created at the lib/storage.Storage level
This commit is contained in:
parent
371182f299
commit
298aab3f54
1 changed files with 0 additions and 10 deletions
|
@ -141,8 +141,6 @@ type Table struct {
|
|||
// which may need to be merged.
|
||||
needMergeCh chan struct{}
|
||||
|
||||
flockF *os.File
|
||||
|
||||
stopCh chan struct{}
|
||||
|
||||
wg sync.WaitGroup
|
||||
|
@ -331,9 +329,6 @@ func MustOpenTable(path string, flushCallback func(), prepareBlock PrepareBlockC
|
|||
// Create a directory for the table if it doesn't exist yet.
|
||||
fs.MustMkdirIfNotExist(path)
|
||||
|
||||
// Protect from concurrent opens.
|
||||
flockF := fs.MustCreateFlockFile(path)
|
||||
|
||||
// Open table parts.
|
||||
pws := mustOpenParts(path)
|
||||
|
||||
|
@ -345,7 +340,6 @@ func MustOpenTable(path string, flushCallback func(), prepareBlock PrepareBlockC
|
|||
fileParts: pws,
|
||||
mergeIdx: uint64(time.Now().UnixNano()),
|
||||
needMergeCh: make(chan struct{}, 1),
|
||||
flockF: flockF,
|
||||
stopCh: make(chan struct{}),
|
||||
}
|
||||
tb.rawItems.init()
|
||||
|
@ -408,10 +402,6 @@ func (tb *Table) MustClose() {
|
|||
for _, pw := range fileParts {
|
||||
pw.decRef()
|
||||
}
|
||||
|
||||
// Release flockF
|
||||
fs.MustClose(tb.flockF)
|
||||
tb.flockF = nil
|
||||
}
|
||||
|
||||
// Path returns the path to tb on the filesystem.
|
||||
|
|
Loading…
Reference in a new issue