Commit 1c164ef3 authored by Tom Lane's avatar Tom Lane

Remove useless Assert.

Testing that an unsigned variable is >= 0 is pretty pointless,
as noted by Coverity and numerous buildfarm members.

In passing, add comment about new uses of "volatile" --- Coverity
doesn't much like that either, but it seems probably necessary.
parent 20e7e1fe
......@@ -1907,6 +1907,9 @@ ReorderBufferResetTXN(ReorderBuffer *rb, ReorderBufferTXN *txn,
* merge) and replay the changes in lsn order.
*
* If streaming is true then data will be sent using stream API.
*
* Note: "volatile" markers on some parameters are to avoid trouble with
* PG_TRY inside the function.
*/
static void
ReorderBufferProcessTXN(ReorderBuffer *rb, ReorderBufferTXN *txn,
......@@ -2762,7 +2765,6 @@ ReorderBufferChangeMemoryUpdate(ReorderBuffer *rb,
}
Assert(txn->size <= rb->size);
Assert((txn->size >= 0) && (rb->size >= 0));
}
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment