Skip to content

Commit 9a1e5ba

Browse files
committed
Function pg_atomic_test_set_flag returns true if the flag has successfully been set, false otherwise
1 parent 03412d7 commit 9a1e5ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ do_backup_instance(void)
692692
(void *(*)(void *)) remote_backup_files,
693693
arg);
694694
}
695-
695+
696696
/* Wait threads */
697697
for (i = 0; i < num_threads; i++)
698698
{
@@ -1930,7 +1930,7 @@ backup_files(void *arg)
19301930

19311931
pgFile *file = (pgFile *) parray_get(arguments->backup_files_list, i);
19321932
elog(VERBOSE, "Copying file: \"%s\" ", file->path);
1933-
if (pg_atomic_test_set_flag(&file->lock))
1933+
if (!pg_atomic_test_set_flag(&file->lock))
19341934
continue;
19351935

19361936
/* check for interrupt */

0 commit comments

Comments
 (0)