ExportXMLWordPrintableJSON

    • Type: Technical Debt
    • Resolution: Fixed
    • Priority: Minor - P4
    • WT12.0.0, 9.1.0-rc0
    • Affects Version/s: None
    • Component/s: Checkpoints
    • None
    • Storage Engines - Persistence
    • 362.201
    • StorEng - Defined Pipeline
    • None

      Summary

      WT_BLOCK_SYNC_ON_CHECKPOINT (formerly the sync_on_checkpoint boolean in WT_BLOCK) is never set in product code, so the code that reads it appears to be dead. Please check whether it can be deleted.

      Evidence

      • src/block_mgr/block_mgr.c (_bm_close_block-style close path): tests the flag and, if set, calls _wt_fsync and clears it.
      • The only code that sets it is the Catch2 test test/catch2/block/unit/test_block_file.cpp, which sets it to exercise that close path.
      • The production setter was part of tiered storage, which was removed in WT-18587.

      Request

      For the persistence team:

      • Confirm that nothing outside this repository's source relies on the flag.
      • If it is unused, remove the flag, the fsync-on-close branch, and the unit test case that sets it.

      Found while reviewing https://github.com/wiredtiger/wiredtiger/pull/15128 (WT-18249), which moved the WT_BLOCK booleans into flags.

            Assignee:
            Dylan Liang
            Reporter:
            Chenhao Qu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: