projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5850b20
)
Remove useless assertion.
author
Robert Haas
<rhaas@postgresql.org>
Wed, 13 May 2015 15:01:10 +0000
(11:01 -0400)
committer
Robert Haas
<rhaas@postgresql.org>
Wed, 13 May 2015 15:01:10 +0000
(11:01 -0400)
Here, snapshot->xcnt is an unsigned type, so it will always be
non-negative.
src/backend/utils/time/snapmgr.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/time/snapmgr.c
b/src/backend/utils/time/snapmgr.c
index a2cb4a037ff6502eea0520ffee40788ff5df7f2f..f4bdabfd79115e8a274191cc3ceae54b745d173d 100644
(file)
--- a/
src/backend/utils/time/snapmgr.c
+++ b/
src/backend/utils/time/snapmgr.c
@@
-1480,7
+1480,6
@@
SerializeSnapshot(Snapshot snapshot, char *start_address)
{
SerializedSnapshotData *serialized_snapshot;
- Assert(snapshot->xcnt >= 0);
Assert(snapshot->subxcnt >= 0);
serialized_snapshot = (SerializedSnapshotData *) start_address;