mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-01-18 04:58:51 +02:00
Add missing asserts.
This commit is contained in:
parent
ea9147e2e0
commit
d5f451a8b9
@ -60,6 +60,8 @@ archiveAsyncErrorClear(ArchiveMode archiveMode, const String *archiveFile)
|
||||
FUNCTION_LOG_PARAM(STRING, archiveFile);
|
||||
FUNCTION_LOG_END();
|
||||
|
||||
ASSERT(archiveFile != NULL);
|
||||
|
||||
storageRemoveP(
|
||||
storageSpoolWrite(), strNewFmt(STORAGE_SPOOL_ARCHIVE_OUT "/%s" STATUS_EXT_ERROR, strPtr(archiveFile)));
|
||||
storageRemoveP(storageSpoolWrite(), STRDEF(STORAGE_SPOOL_ARCHIVE_OUT "/" STATUS_FILE_GLOBAL_ERROR));
|
||||
@ -77,6 +79,8 @@ archiveAsyncStatus(ArchiveMode archiveMode, const String *walSegment, bool throw
|
||||
FUNCTION_LOG_PARAM(BOOL, throwOnError);
|
||||
FUNCTION_LOG_END();
|
||||
|
||||
ASSERT(walSegment != NULL);
|
||||
|
||||
bool result = false;
|
||||
|
||||
MEM_CONTEXT_TEMP_BEGIN()
|
||||
|
Loading…
x
Reference in New Issue
Block a user