mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-02-09 14:33:17 +02:00
Function pg_atomic_test_set_flag returns true if the flag has successfully been set, false otherwise
This commit is contained in:
parent
03412d766f
commit
9a1e5ba044
@ -692,7 +692,7 @@ do_backup_instance(void)
|
||||
(void *(*)(void *)) remote_backup_files,
|
||||
arg);
|
||||
}
|
||||
|
||||
|
||||
/* Wait threads */
|
||||
for (i = 0; i < num_threads; i++)
|
||||
{
|
||||
@ -1930,7 +1930,7 @@ backup_files(void *arg)
|
||||
|
||||
pgFile *file = (pgFile *) parray_get(arguments->backup_files_list, i);
|
||||
elog(VERBOSE, "Copying file: \"%s\" ", file->path);
|
||||
if (pg_atomic_test_set_flag(&file->lock))
|
||||
if (!pg_atomic_test_set_flag(&file->lock))
|
||||
continue;
|
||||
|
||||
/* check for interrupt */
|
||||
|
Loading…
x
Reference in New Issue
Block a user