diff options
| author | Michael Paquier | 2018-07-18 00:51:53 +0000 |
|---|---|---|
| committer | Michael Paquier | 2018-07-18 00:51:53 +0000 |
| commit | 94019c879a138454af723fa8bfc346d4a44ecd47 (patch) | |
| tree | baade402670356732dcc1e7e0b22cf7f2192a109 /src/backend/replication/logical/snapbuild.c | |
| parent | 8bd064f0c7d61c40a8a1179e9d24997fc0a20689 (diff) | |
Fix more portability issues with casts to Size when using off_t
This should tame the beast, as there are no other places where off_t is
used in the new error messages.
Reported again by longfin, which complained about walsender.c while I
spotted the other two ones while double-checking.
Diffstat (limited to 'src/backend/replication/logical/snapbuild.c')
| -rw-r--r-- | src/backend/replication/logical/snapbuild.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/replication/logical/snapbuild.c b/src/backend/replication/logical/snapbuild.c index 61bc9e8f147..7bd969b0a1c 100644 --- a/src/backend/replication/logical/snapbuild.c +++ b/src/backend/replication/logical/snapbuild.c @@ -1737,7 +1737,8 @@ SnapBuildRestore(SnapBuild *builder, XLogRecPtr lsn) else ereport(ERROR, (errmsg("could not read file \"%s\": read %d of %zu", - path, readBytes, SnapBuildOnDiskConstantSize))); + path, readBytes, + (Size) SnapBuildOnDiskConstantSize))); } if (ondisk.magic != SNAPBUILD_MAGIC) |
