Skip to content

Commit

Permalink
Rename INFO_MANIFEST_FILE to MANIFEST_FILE.
Browse files Browse the repository at this point in the history
This was missed in 5c314df when the module was renamed.
  • Loading branch information
dwsteele committed Sep 6, 2019
1 parent 4d84820 commit dde0c2b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 2 additions & 4 deletions src/command/expire/expire.c
Expand Up @@ -98,11 +98,9 @@ expireBackup(InfoBackup *infoBackup, String *removeBackupLabel, String *backupEx
ASSERT(removeBackupLabel != NULL);
ASSERT(backupExpired != NULL);

storageRemoveNP(storageRepoWrite(), strNewFmt(STORAGE_REPO_BACKUP "/%s/" MANIFEST_FILE, strPtr(removeBackupLabel)));
storageRemoveNP(
storageRepoWrite(), strNewFmt(STORAGE_REPO_BACKUP "/%s/" INFO_MANIFEST_FILE, strPtr(removeBackupLabel)));

storageRemoveNP(
storageRepoWrite(), strNewFmt(STORAGE_REPO_BACKUP "/%s/" INFO_MANIFEST_FILE INFO_COPY_EXT, strPtr(removeBackupLabel)));
storageRepoWrite(), strNewFmt(STORAGE_REPO_BACKUP "/%s/" MANIFEST_FILE INFO_COPY_EXT, strPtr(removeBackupLabel)));

// Remove the backup from the info file
infoBackupDataDelete(infoBackup, removeBackupLabel);
Expand Down
5 changes: 2 additions & 3 deletions src/command/stanza/delete.c
Expand Up @@ -38,11 +38,10 @@ manifestDelete(const Storage *storageRepoWriteStanza)
for (unsigned int idx = 0; idx < strLstSize(backupList); idx++)
{
storageRemoveNP(
storageRepoWriteStanza,
strNewFmt(STORAGE_REPO_BACKUP "/%s/" INFO_MANIFEST_FILE, strPtr(strLstGet(backupList, idx))));
storageRepoWriteStanza, strNewFmt(STORAGE_REPO_BACKUP "/%s/" MANIFEST_FILE, strPtr(strLstGet(backupList, idx))));
storageRemoveNP(
storageRepoWriteStanza,
strNewFmt(STORAGE_REPO_BACKUP "/%s/" INFO_MANIFEST_FILE INFO_COPY_EXT, strPtr(strLstGet(backupList, idx))));
strNewFmt(STORAGE_REPO_BACKUP "/%s/" MANIFEST_FILE INFO_COPY_EXT, strPtr(strLstGet(backupList, idx))));
}

FUNCTION_TEST_RETURN_VOID();
Expand Down
2 changes: 1 addition & 1 deletion src/info/manifest.h
Expand Up @@ -7,6 +7,6 @@ Manifest Handler
/***********************************************************************************************************************************
Constants
***********************************************************************************************************************************/
#define INFO_MANIFEST_FILE "backup.manifest"
#define MANIFEST_FILE "backup.manifest"

#endif
11 changes: 7 additions & 4 deletions test/src/module/command/expireTest.c
Expand Up @@ -168,11 +168,14 @@ testRun(void)
harnessCfgLoad(strLstSize(argList), strLstPtr(argList));

TEST_RESULT_VOID(
storagePutNP(storageNewWriteNP(storageTest, strNewFmt("%s/%s", strPtr(full1Path), INFO_MANIFEST_FILE)),
BUFSTRDEF(BOGUS_STR)), "full1 put manifest");
storagePutNP(
storageNewWriteNP(storageTest, strNewFmt("%s/%s", strPtr(full1Path), MANIFEST_FILE)), BUFSTRDEF(BOGUS_STR)),
"full1 put manifest");
TEST_RESULT_VOID(
storagePutNP(storageNewWriteNP(storageTest, strNewFmt("%s/%s", strPtr(full1Path), INFO_MANIFEST_FILE ".copy")),
BUFSTRDEF(BOGUS_STR)), "full1 put manifest copy");
storagePutNP(
storageNewWriteNP(
storageTest, strNewFmt("%s/%s", strPtr(full1Path), MANIFEST_FILE ".copy")), BUFSTRDEF(BOGUS_STR)),
"full1 put manifest copy");
TEST_RESULT_VOID(
storagePutNP(storageNewWriteNP(storageTest, strNewFmt("%s/%s", strPtr(full1Path), "bogus")),
BUFSTRDEF(BOGUS_STR)), "full1 put extra file");
Expand Down

0 comments on commit dde0c2b

Please sign in to comment.