projects
/
plproxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
040379d
)
rowstamp: allow usage on zeroed stamp
author
Marko Kreen
<markokr@gmail.com>
Wed, 28 Mar 2012 19:09:17 +0000
(22:09 +0300)
committer
Marko Kreen
<markokr@gmail.com>
Thu, 29 Mar 2012 11:07:32 +0000
(14:07 +0300)
src/rowstamp.h
patch
|
blob
|
blame
|
history
diff --git
a/src/rowstamp.h
b/src/rowstamp.h
index 37ca3784ef925ad58064ce240742d9d5b917a993..2f8fb0b79c7c0732e0fbb64f4ac0aaad5b22205b 100644
(file)
--- a/
src/rowstamp.h
+++ b/
src/rowstamp.h
@@
-69,6
+69,8
@@
static inline void scstamp_set(int cache, SysCacheStamp *stamp, HeapTuple tup)
static inline bool scstamp_check(int cache, SysCacheStamp *stamp, uint32 hashValue)
{
+ if (stamp->cacheid == 0)
+ return true;
if (cache != stamp->cacheid)
elog(WARNING, "cache id mismatch: stamp:%d cur:%d", stamp->cacheid, cache);
return !hashValue || stamp->hashValue == hashValue;