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

Use flags instead of booleans to store tracing options

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT11.1.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • 3
    • Storage Engines - 2022-08-08

      Summary

      Use should use flags instead of booleans to store trace options because it is consistent with WiredTiger code style. We can use 

      uint32_t trace_flags; 

      Instead of 

          bool trace;
          bool trace_bulk;
          bool trace_cursor;
          bool trace_mirror_fail;
          bool trace_read;
          bool trace_timestamp;
          bool trace_txn; 

      in "GLOBAL" in "format.h:192"

            Assignee:
            monica.ng@mongodb.com Monica Ng
            Reporter:
            alexey.anisimov@mongodb.com Alexey Anisimov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: