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

Create placeholder function API and WT_VERBOSE_ERROR structure

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT12.0.0, 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: APIs
    • None
    • Storage Engines
    • 5
    • StorEng - 2024-12-24

      This ticket involves creating a placeholder API on the session level as part of the project. The API will act as an error extension to WiredTiger and will return more verbose information when an error has occurred in a prior session API call. The API should look something like this:

      /* External */
      void get_last_error(WT_SESSION* session, int* err, int* sub_level_err, const char** err_msg)
      

      Following the API, a new internal WiredTiger structure will be created to accommodate these information:

      /* WiredTiger Internal */
      typdef struct wt_verbose_error {
      	int err;
      	int sub_level_err;
      	const char* err_msg;
      } WT_VERBOSE_ERROR;
      

      Defintion of done
      This ticket will be completed when the API function and struct is created on the session level with an example added in the examples folder and a unit test created. Followingly, the developer will needed to test if the API works inside the python test suite.

            Assignee:
            alex.pullen@mongodb.com Alex Pullen (Inactive)
            Reporter:
            jie.chen@mongodb.com Jie Chen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: