Skip to content

Commit c834576

Browse files
committed
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
1 parent 1460b19 commit c834576

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/replication/logical/snapbuild.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1431,7 +1431,7 @@ SnapBuildSerialize(SnapBuild *builder, XLogRecPtr lsn)
14311431
char path[MAXPGPATH];
14321432
int ret;
14331433
struct stat stat_buf;
1434-
uint32 sz;
1434+
Size sz;
14351435

14361436
Assert(lsn != InvalidXLogRecPtr);
14371437
Assert(builder->last_serialized_snapshot == InvalidXLogRecPtr ||

0 commit comments

Comments
 (0)