VictoriaMetrics/lib/backup
Aliaksandr Valialkin aac3dccfd1
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:22:08 -07:00
..
actions lib/fs: replace MkdirAllIfNotExist->MustMkdirIfNotExist and MkdirAllFailIfExist->MustMkdirFailIfExist 2023-04-13 22:22:08 -07:00
azremote app,lib: fix typos in comments (#3804) 2023-02-13 09:32:35 -08:00
backupnames lib/storage: consistently use OS-independent separator in file paths 2023-03-25 14:34:36 -07:00
common removes FileSize from backup part key (#1872) 2021-12-01 12:30:03 +02:00
fscommon lib/storage: consistently use OS-independent separator in file paths 2023-03-25 14:34:36 -07:00
fslocal lib/backup: remove logging duplicate path values in a single error message 2022-12-03 21:55:12 -08:00
fsnil lib/backup: add MustStop() method for all remote filesystems 2020-10-09 15:32:13 +03:00
fsremote lib/backup: remove logging duplicate path values in a single error message 2022-12-03 21:55:12 -08:00
gcsremote app/vmbackupmanager: sync with enterprise-single-node branch after 41a54c775891c87e3d5ed59ff0769c869dd2fe71 2023-04-13 19:38:28 -07:00
s3remote app,lib: fix typos in comments (#3804) 2023-02-13 09:32:35 -08:00