postgres.git / summary / log / commit / refs
commit c83457683968e2263d7e6bcdcdd52d472f9b0f8d
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: Mon May 05 13:17:16 2014 +0000
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
src/backend/replication/logical/snapbuild.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 ||
[parent: 1460b199e6e7]