-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Logging
-
Storage Engines
-
StorEng - Defined Pipeline
Bitwise-and with zero
The expression's value is always zero; construct may indicate an inadvertent logic error. Bitwise-and ('&') operation applied to zero always produces zero
/src/log/log_slot.c:461: CONSTANT_EXPRESSION_RESULT 162126 "__wt_atomic_load16(&log->slot_pool[i].flags_atomic) & 0 /* (uint16_t)0 */" is always 0. This occurs as the logical operand of "if".