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

modstat tool doesn't display all structs properly

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Storage Engines
    • StorEng - Defined Pipeline

      In C, structs can be declared in two different ways:

      (1)

      /*
      * WT_DELETE_HS_UPD --
      * Update that needs to be deleted from the history store.
      */
      struct __wt_delete_hs_upd {
      WT_INSERT*ins; /* Insert list reference */
      WT_ROW*rip; /* Original on-page reference */
      WT_UPDATE*upd;
      WT_UPDATE*tombstone;
      };
      

      (2)

      typedef struct {
      
          enum {
      
              WT_CHILD_IGNORE,   /* Ignored child */
      
              WT_CHILD_MODIFIED, /* Modified child */
      
              WT_CHILD_ORIGINAL, /* Original child */
      
              WT_CHILD_PROXY     /* Deleted child: proxy */
      
          } state;               /* Returned child state */
      
       
      
          WT_PAGE_DELETED del; /* WT_CHILD_PROXY state fast-truncate information */
      
       
      
          bool hazard; /* If currently holding a child hazard pointer */
      
      } WT_CHILD_MODIFY_STATE;
      
      

       

      Currently, the modstat tool will not properly print out the name of the struct if it is declared using the second approach. The scope of the ticket is to fix the tool so that it is able to do this.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            monica.ng@mongodb.com Monica Ng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: