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

Fix bug in cursor_prev_skip statistics

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • WT11.2.0, 6.3.0-rc0, 6.2.0-rc2
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • v6.2

      In __wt_btcur_prev(), instead of updating the cursor_prev_skip_lt_100 and cursor_prev_skip_ge_100 stats, we are incrementing the corresponding cursor_next stats:

          if (total_skipped != 0) {
              if (total_skipped < 100)
                  WT_STAT_CONN_DATA_INCR(session, cursor_next_skip_lt_100);
              else
                  WT_STAT_CONN_DATA_INCR(session, cursor_next_skip_ge_100);
          }
      
      
          WT_STAT_CONN_DATA_INCRV(session, cursor_prev_skip_total, total_skipped);
      
      
      

            Assignee:
            keith.smith@mongodb.com Keith Smith
            Reporter:
            keith.smith@mongodb.com Keith Smith
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: