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

Move the new debug data members from WT_SESSION_IMPL to WT_CURSOR

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • 5
    • Storage Engines - 2022-07-25, Storage Engines - 2022-08-08

      Summary

      At the moment "format_private" and "format_private_arg" are only used inĀ  "src/btree/bt_cursor.c" so it makes sense to move them into the cursor implementation rather than keeping them visible at the global scope in session.

      Here's the comment from Keith B:

      "The reason this is in the session and not a cursor is it's more difficult to add random stuff to cursors (especially the high-level WT_CURSOR cursors, because of the static initialization code), than it is to add a field to WT_SESSION_IMPL, and so that's what I did."

      Here's a link to the comment https://github.com/wiredtiger/wiredtiger/pull/7662#discussion_r916359214

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

              Created:
              Updated:
              Resolved: