Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pglogrepl.go
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ type CopyDoneResult struct {

// SendStandbyCopyDone sends a StandbyCopyDone to the PostgreSQL server
// to confirm ending the copy-both mode.
func SendStandbyCopyDone(_ context.Context, conn *pgconn.PgConn) (cdr *CopyDoneResult, err error) {
func SendStandbyCopyDone(_ context.Context, conn *pgconn.PgConn) (cdr CopyDoneResult, err error) {
// I am suspicious that this is wildly wrong, but I'm pretty sure the previous
// code was wildly wrong too -- wttw <steve@blighty.com>
conn.Frontend().Send(&pgproto3.CopyDone{})
Expand Down
2 changes: 1 addition & 1 deletion pglogrepl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ drop table mytable;

copyDoneResult, err := pglogrepl.SendStandbyCopyDone(ctx, conn)
require.NoError(t, err)
assert.Nil(t, copyDoneResult)
assert.Equal(t, copyDoneResult, pglogrepl.CopyDoneResult{})
}

func TestBaseBackup(t *testing.T) {
Expand Down