summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2014-05-05 16:17:16 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2014-05-05 16:17:16 +0300
commitc83457683968e2263d7e6bcdcdd52d472f9b0f8d (patch)
tree5332c3d2347a6f90677a4cd7a7cfb36070d16c2b
parent1460b199e6e748712253fa130d1c3368ba6ac861 (diff)
Use Size instead of uint32 to store result of sizeof()
Silences coverity and is more consistent with other functions in the same file. Andres Freund
-rw-r--r--src/backend/replication/logical/snapbuild.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/replication/logical/snapbuild.c b/src/backend/replication/logical/snapbuild.c
index c462e9059d6..36034dbec9d 100644
--- a/src/backend/replication/logical/snapbuild.c
+++ b/src/backend/replication/logical/snapbuild.c
@@ -1431,7 +1431,7 @@ SnapBuildSerialize(SnapBuild *builder, XLogRecPtr lsn)
char path[MAXPGPATH];
int ret;
struct stat stat_buf;
- uint32 sz;
+ Size sz;
Assert(lsn != InvalidXLogRecPtr);
Assert(builder->last_serialized_snapshot == InvalidXLogRecPtr ||