Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
VaibhaveS committed Aug 6, 2024
1 parent d935200 commit c939d1b
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/include/copy-db.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@
--resume Allow resuming operations after a failure
--not-consistent Allow taking a new snapshot on the source database
--snapshot Use snapshot obtained with pg_export_snapshot
--use-copy-binary Use the COPY BINARY format for COPY operations
3 changes: 2 additions & 1 deletion src/bin/pgcopydb/cli_copy.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ static CommandLine copy_db_command =
" --restart Allow restarting when temp files exist already\n"
" --resume Allow resuming operations after a failure\n"
" --not-consistent Allow taking a new snapshot on the source database\n"
" --snapshot Use snapshot obtained with pg_export_snapshot\n",
" --snapshot Use snapshot obtained with pg_export_snapshot\n"
" --use-copy-binary Use the COPY BINARY format for COPY operations\n",
cli_copy_db_getopts,
cli_clone);

Expand Down
1 change: 0 additions & 1 deletion src/bin/pgcopydb/pgsql.h
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,6 @@ typedef struct CopyArgs
bool truncate;
bool freeze;
bool useCopyBinary;
uint64_t bytesTransmitted;
} CopyArgs;


Expand Down
1 change: 0 additions & 1 deletion src/bin/pgcopydb/table-data.c
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,6 @@ copydb_table_create_lockfile(CopyDataSpec *specs,
args->dstAttrList = tableSpecs->sourceTable->attrList;
args->truncate = false; /* default value, see below */
args->freeze = tableSpecs->sourceTable->partition.partCount <= 1;
args->bytesTransmitted = 0;
args->useCopyBinary = specs->useCopyBinary;

/*
Expand Down
2 changes: 1 addition & 1 deletion tests/endpos-in-multi-wal-txn/copydb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ sleep 1
pgcopydb stream setup

# pgcopydb clone uses the environment variables
pgcopydb clone --use-binary-copy
pgcopydb clone --use-copy-binary

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

0 comments on commit c939d1b

Please sign in to comment.