postgres.git / summary / log / commit / refs

commit    ae6157164faf5ec1636a9acfe18bfd28a31db098
Author:   Robert Haas <rhaas@postgresql.org>
Date:     Wed May 13 15:01:10 2015 +0000
First released in: 9.5.0

    Remove useless assertion.
    
    Here, snapshot->xcnt is an unsigned type, so it will always be
    non-negative.


src/backend/utils/time/snapmgr.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/backend/utils/time/snapmgr.c b/src/backend/utils/time/snapmgr.c index a2cb4a037ff..f4bdabfd791 100644 --- 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; [parent: 5850b20f58a5]