aboutsummaryrefslogtreecommitdiff
path: root/src/backend/replication/logical/reorderbuffer.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2019-07-06 23:18:46 +0200
committerPeter Eisentraut <peter@eisentraut.org>2019-07-07 15:28:49 +0200
commit7e9a4c5c3dca0d9637812d8991e96fc8f46800d9 (patch)
treeea48b3d7e575d88a8e4afeb9040dab178f9a2dab /src/backend/replication/logical/reorderbuffer.c
parentd1a040543b49e0aad273e7766cd7e2fcf2b781fa (diff)
downloadpostgresql-7e9a4c5c3dca0d9637812d8991e96fc8f46800d9.tar.gz
postgresql-7e9a4c5c3dca0d9637812d8991e96fc8f46800d9.zip
Use consistent style for checking return from system calls
Use if (something() != 0) error ... instead of just if (something) error ... The latter is not incorrect, but it's a bit confusing and not the common style. Discussion: https://www.postgresql.org/message-id/flat/5de61b6b-8be9-7771-0048-860328efe027%402ndquadrant.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 e7c32f2a132..591377d2cd7 100644
--- a/src/backend/replication/logical/reorderbuffer.c
+++ b/src/backend/replication/logical/reorderbuffer.c
@@ -3360,7 +3360,7 @@ ApplyLogicalMappingFile(HTAB *tuplecid_data, Oid relid, const char *fname)
}
}
- if (CloseTransientFile(fd))
+ if (CloseTransientFile(fd) != 0)
ereport(ERROR,
(errcode_for_file_access(),
errmsg("could not close file \"%s\": %m", path)));