mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-03 00:56:53 +02:00
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
This commit is contained in:
parent
1460b199e6
commit
c834576839
@ -1431,7 +1431,7 @@ SnapBuildSerialize(SnapBuild *builder, XLogRecPtr lsn)
|
|||||||
char path[MAXPGPATH];
|
char path[MAXPGPATH];
|
||||||
int ret;
|
int ret;
|
||||||
struct stat stat_buf;
|
struct stat stat_buf;
|
||||||
uint32 sz;
|
Size sz;
|
||||||
|
|
||||||
Assert(lsn != InvalidXLogRecPtr);
|
Assert(lsn != InvalidXLogRecPtr);
|
||||||
Assert(builder->last_serialized_snapshot == InvalidXLogRecPtr ||
|
Assert(builder->last_serialized_snapshot == InvalidXLogRecPtr ||
|
||||||
|
Loading…
Reference in New Issue
Block a user