Content-Length: 255402 | pFad | http://github.com/postgrespro/postgres_cluster/commit/ae6157164faf5ec1636a9acfe18bfd28a31db098

4F Remove useless assertion. · postgrespro/postgres_cluster@ae61571 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/ae6157164faf5ec1636a9acfe18bfd28a31db098

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy