1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-09-16 09:26:30 +02:00

bugfix: elog fact of copying file after locking it, not before

This commit is contained in:
Grigory Smolkin
2018-12-25 16:44:37 +03:00
parent a42895620d
commit 02860600d9

View File

@@ -2216,9 +2216,9 @@ backup_files(void *arg)
struct stat buf;
pgFile *file = (pgFile *) parray_get(arguments->files_list, i);
elog(VERBOSE, "Copying file: \"%s\" ", file->path);
if (!pg_atomic_test_set_flag(&file->lock))
continue;
elog(VERBOSE, "Copying file: \"%s\" ", file->path);
/* check for interrupt */
if (interrupted)