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

Initialize Context::_verbose with parsed value from swig wrapper

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT11.2.0, 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • 1
    • Storage Engines - 2023-01-10

      Workgen workloads can take --verbose as a parameter, but when doing so the Workgen C++ code doesn't output any verbose messages.

      There is the following verbose method to be used:

      #define VERBOSE(runner, args)               \
          do {                                    \
              if ((runner)._context->_verbose)    \
                  std::cout << args << std::endl; \
          } while (0)
      

      But we do not set Context->_verbose to true anywhere at the moment. I traced back, and --verbose has never worked. Argument parsing from python that gets used to initialize the C++ structures was added in WT-5989 (c81160). I think that change missed initializing the Context::_verbose

      This should be a simple fix.

            Assignee:
            sulabh.mahajan@mongodb.com Sulabh Mahajan
            Reporter:
            sulabh.mahajan@mongodb.com Sulabh Mahajan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: