]> granicus.if.org Git - postgresql/commitdiff
Remove useless assertion.
authorRobert Haas <rhaas@postgresql.org>
Wed, 13 May 2015 15:01:10 +0000 (11:01 -0400)
committerRobert 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

index a2cb4a037ff6502eea0520ffee40788ff5df7f2f..f4bdabfd79115e8a274191cc3ceae54b745d173d 100644 (file)
@@ -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;