Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-13590

__wti_log_slot_init calling F_SET with the zero flag

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 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".

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: