1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-25 21:42:33 +03:00

Remove useless assertion.

Here, snapshot->xcnt is an unsigned type, so it will always be
non-negative.
This commit is contained in:
Robert Haas 2015-05-13 11:01:10 -04:00
parent 5850b20f58
commit ae6157164f

View 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;