aboutsummaryrefslogtreecommitdiff
path: root/src/backend/replication/logical/reorderbuffer.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2016-03-27 17:17:00 +0200
committerAndres Freund <andres@anarazel.de>2016-03-27 18:10:19 +0200
commit1a7a43672bf2939dda93a27d498349e7a4aa3c14 (patch)
tree7c2b58901af052b421fa1114d4c899c4b870163c /src/backend/replication/logical/reorderbuffer.c
parentaf4472bcb88ab36b9abbe7fd5858e570a65a2d1a (diff)
downloadpostgresql-1a7a43672bf2939dda93a27d498349e7a4aa3c14.tar.gz
postgresql-1a7a43672bf2939dda93a27d498349e7a4aa3c14.zip
Don't use !! but != 0/NULL to force boolean evaluation.
I introduced several uses of !! to force bit arithmetic to be boolean, but per discussion the project prefers != 0/NULL. Discussion: CA+TgmoZP5KakLGP6B4vUjgMBUW0woq_dJYi0paOz-My0Hwt_vQ@mail.gmail.com
Diffstat (limited to 'src/backend/replication/logical/reorderbuffer.c')
-rw-r--r--src/backend/replication/logical/reorderbuffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/replication/logical/reorderbuffer.c b/src/backend/replication/logical/reorderbuffer.c
index f2b8f4b7b84..9d78c8c134e 100644
--- a/src/backend/replication/logical/reorderbuffer.c
+++ b/src/backend/replication/logical/reorderbuffer.c
@@ -603,7 +603,7 @@ ReorderBufferTXNByXid(ReorderBuffer *rb, TransactionId xid, bool create,
if (is_new)
*is_new = !found;
- Assert(!create || !!txn);
+ Assert(!create || txn != NULL);
return txn;
}