Fix 2^(64-PG_EPOCH_BITS) - 1 check
This commit is contained in:
@@ -188,7 +188,7 @@ resume_3:
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ((op_data->fact_ver & ((uint64_t)1 << (64-PG_EPOCH_BITS) - 1)) == ((uint64_t)1 << (64-PG_EPOCH_BITS) - 1))
|
if ((op_data->fact_ver & (((uint64_t)1 << (64-PG_EPOCH_BITS)) - 1)) == (((uint64_t)1 << (64-PG_EPOCH_BITS)) - 1))
|
||||||
{
|
{
|
||||||
assert(pg.epoch != (((uint64_t)1 << PG_EPOCH_BITS)-1));
|
assert(pg.epoch != (((uint64_t)1 << PG_EPOCH_BITS)-1));
|
||||||
pg.epoch++;
|
pg.epoch++;
|
||||||
|
|||||||
Reference in New Issue
Block a user