8000 Remove useless assertion. · postgrespro/postgres_cluster@ae61571 · GitHub
[go: up one dir, main page]

Skip to content

Commit ae61571

Browse files
committed
Remove useless assertion.
Here, snapshot->xcnt is an unsigned type, so it will always be non-negative.
1 parent 5850b20 commit ae61571

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/backend/utils/time/snapmgr.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1480,7 +1480,6 @@ SerializeSnapshot(Snapshot snapshot, char *start_address)
14801480
{
14811481
SerializedSnapshotData *serialized_snapshot;
14821482

1483-
Assert(snapshot->xcnt >= 0);
14841483
Assert(snapshot->subxcnt >= 0);
14851484

14861485
serialized_snapshot = (SerializedSnapshotData *) start_address;

0 commit comments

Comments
 (0)
0