mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-10 15:14:09 +00:00
lib/persistentqueue: use the proper function call after 31945fb38d
This commit is contained in:
parent
dc8bc5d6cd
commit
e42af059a1
1 changed files with 5 additions and 1 deletions
|
@ -204,7 +204,11 @@ func tryOpeningQueue(path, name string, chunkFileSize, maxBlockSize, maxPendingB
|
||||||
// path contents is broken or missing. Re-create it from scratch.
|
// path contents is broken or missing. Re-create it from scratch.
|
||||||
fs.MustClose(q.flockF)
|
fs.MustClose(q.flockF)
|
||||||
fs.RemoveDirContents(path)
|
fs.RemoveDirContents(path)
|
||||||
q.flockF = fs.MustCreateFlockFile(path)
|
flockF, err := fs.CreateFlockFile(path)
|
||||||
|
if err != nil {
|
||||||
|
logger.Panicf("FATAL: cannot create flock file: %s", err)
|
||||||
|
}
|
||||||
|
q.flockF = flockF
|
||||||
mi.Reset()
|
mi.Reset()
|
||||||
mi.Name = q.name
|
mi.Name = q.name
|
||||||
if err := mi.WriteToFile(metainfoPath); err != nil {
|
if err := mi.WriteToFile(metainfoPath); err != nil {
|
||||||
|
|
Loading…
Reference in a new issue