projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
811b6e3
)
Fix casting in error message for two-phase file
author
Michael Paquier
Wed, 18 Jul 2018 00:11:34 +0000
(09:11 +0900)
committer
Michael Paquier
Wed, 18 Jul 2018 00:11:34 +0000
(09:11 +0900)
This error from from
811b6e3
, which causes compilation warnings with OSX
10.3 and clang.
Reported by Tom Lane, via buildfarm member longfin.
src/backend/access/transam/twophase.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/access/transam/twophase.c
b/src/backend/access/transam/twophase.c
index 0c99b3366417b8dba7b7d5cface204f7f4195bfa..306861bb793bc215e7607206199a35d5148a5ad9 100644
(file)
--- a/
src/backend/access/transam/twophase.c
+++ b/
src/backend/access/transam/twophase.c
@@
-1295,7
+1295,7
@@
ReadTwoPhaseFile(TransactionId xid, bool give_warnings)
else
ereport(WARNING,
(errmsg("could not read file \"%s\": read %d of %zu",
- path, r, stat.st_size)));
+ path, r,
(Size)
stat.st_size)));
}
pfree(buf);
return NULL;