VictoriaMetrics/lib/persistentqueue
Aliaksandr Valialkin 036a7b7365
lib/fs: replace MkdirAllIfNotExist->MustMkdirIfNotExist and MkdirAllFailIfExist->MustMkdirFailIfExist
Callers of these functions log the returned error and then exit. The returned error already contains the path
to directory, which was failed to be created. So let's just log the error together with the call stack
inside these functions. This leaves the debuggability of the returned error at the same level
while allows simplifying the code at callers' side.

While at it, properly use MustMkdirFailIfExist instead of MustMkdirIfNotExist inside inmemoryPart.MustStoreToDisk().
It is expected that the inmemoryPart.MustStoreToDick() must fail if there is already a directory under the given path.
2023-04-13 22:11:59 -07:00
..
fastqueue_test.go all: fix golangci-lint issues 2020-03-10 19:41:46 +02:00
fastqueue_timing_test.go all: properly handle CPU limits set on the host system/container 2020-12-08 21:07:29 +02:00
fastqueue.go lib/persistentqueue: typo fix after aea6df8197 2023-03-27 20:06:04 -07:00
filenames.go lib/{fs,persistentqueue}: use filepath.Join() instead of concatenating path parts with / 2023-04-13 20:13:45 -07:00
persistentqueue_test.go lib/{fs,persistentqueue}: use filepath.Join() instead of concatenating path parts with / 2023-04-13 20:13:45 -07:00
persistentqueue_timing_test.go lib/persistentqueue: delete corrupted persistent queue instead of throwing a fatal error 2021-04-05 19:26:11 +03:00
persistentqueue.go lib/fs: replace MkdirAllIfNotExist->MustMkdirIfNotExist and MkdirAllFailIfExist->MustMkdirFailIfExist 2023-04-13 22:11:59 -07:00