Fix 2^(64-PG_EPOCH_BITS) - 1 check

This commit is contained in:
Vitaliy Filippov
2026-05-11 14:59:08 +03:00
parent 87a5230798
commit de96efed2f
+1 -1
View File
@@ -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++;