Skip to content

Commit c939d1b

Browse files
committed
Fix tests.
1 parent d935200 commit c939d1b

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

docs/include/copy-db.rst

+1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@
2222
--resume Allow resuming operations after a failure
2323
--not-consistent Allow taking a new snapshot on the source database
2424
--snapshot Use snapshot obtained with pg_export_snapshot
25+
--use-copy-binary Use the COPY BINARY format for COPY operations
2526

src/bin/pgcopydb/cli_copy.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ static CommandLine copy_db_command =
5252
" --restart Allow restarting when temp files exist already\n"
5353
" --resume Allow resuming operations after a failure\n"
5454
" --not-consistent Allow taking a new snapshot on the source database\n"
55-
" --snapshot Use snapshot obtained with pg_export_snapshot\n",
55+
" --snapshot Use snapshot obtained with pg_export_snapshot\n"
56+
" --use-copy-binary Use the COPY BINARY format for COPY operations\n",
5657
cli_copy_db_getopts,
5758
cli_clone);
5859

src/bin/pgcopydb/pgsql.h

-1
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,6 @@ typedef struct CopyArgs
337337
bool truncate;
338338
bool freeze;
339339
bool useCopyBinary;
340-
uint64_t bytesTransmitted;
341340
} CopyArgs;
342341

343342

src/bin/pgcopydb/table-data.c

-1
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,6 @@ copydb_table_create_lockfile(CopyDataSpec *specs,
11291129
args->dstAttrList = tableSpecs->sourceTable->attrList;
11301130
args->truncate = false; /* default value, see below */
11311131
args->freeze = tableSpecs->sourceTable->partition.partCount <= 1;
1132-
args->bytesTransmitted = 0;
11331132
args->useCopyBinary = specs->useCopyBinary;
11341133

11351134
/*

tests/endpos-in-multi-wal-txn/copydb.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ sleep 1
3434
pgcopydb stream setup
3535

3636
# pgcopydb clone uses the environment variables
37-
pgcopydb clone --use-binary-copy
37+
pgcopydb clone --use-copy-binary
3838

3939
# now that the copying is done, inject some SQL DML changes to the source
4040
psql -d ${PGCOPYDB_SOURCE_PGURI} -f /usr/src/pgcopydb/multi-wal-txn.sql

0 commit comments

Comments
 (0)