Update PR

* Update PR
This commit is contained in:
abraunegg 2023-09-13 06:15:17 +10:00
parent 8d260a6b26
commit ee4092d9d4

View file

@ -688,7 +688,11 @@ int main(string[] cliArgs) {
} }
// Exit application using exit scope // Exit application using exit scope
return EXIT_SUCCESS; if (!syncEngineInstance.syncFailures) {
return EXIT_SUCCESS;
} else {
return EXIT_FAILURE;
}
} }
void performUploadOnlySyncProcess(string localPath, Monitor filesystemMonitor = null) { void performUploadOnlySyncProcess(string localPath, Monitor filesystemMonitor = null) {
@ -882,21 +886,21 @@ void cleanupDryRunDatabaseFiles(string dryRunDatabaseFile) {
// If the dry run database exists, clean this up // If the dry run database exists, clean this up
if (exists(dryRunDatabaseFile)) { if (exists(dryRunDatabaseFile)) {
// remove the existing file // remove the existing file
log.log("DRY-RUN: Removing items-dryrun.sqlite3 as it still exists for some reason"); log.vdebug("DRY-RUN: Removing items-dryrun.sqlite3 as it still exists for some reason");
safeRemove(dryRunDatabaseFile); safeRemove(dryRunDatabaseFile);
} }
// silent cleanup of shm files if it exists // silent cleanup of shm files if it exists
if (exists(dryRunShmFile)) { if (exists(dryRunShmFile)) {
// remove items-dryrun.sqlite3-shm // remove items-dryrun.sqlite3-shm
log.log("DRY-RUN: Removing items-dryrun.sqlite3-shm as it still exists for some reason"); log.vdebug("DRY-RUN: Removing items-dryrun.sqlite3-shm as it still exists for some reason");
safeRemove(dryRunShmFile); safeRemove(dryRunShmFile);
} }
// silent cleanup of wal files if it exists // silent cleanup of wal files if it exists
if (exists(dryRunWalFile)) { if (exists(dryRunWalFile)) {
// remove items-dryrun.sqlite3-wal // remove items-dryrun.sqlite3-wal
log.log("DRY-RUN: Removing items-dryrun.sqlite3-wal as it still exists for some reason"); log.vdebug("DRY-RUN: Removing items-dryrun.sqlite3-wal as it still exists for some reason");
safeRemove(dryRunWalFile); safeRemove(dryRunWalFile);
} }
} }