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.
This commit is contained in:
parent
20e7e1fe31
commit
1c164ef3d2
@ -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));
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user