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

Log cursor value_format change from qIIIuu to QIIIuu

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor - P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: None
    • Labels:

      Description

      The log cursor is created with the following key and value formats,

      /*
      • Both of the macros below need to change if the content of __wt_lsn
      • ever changes.  The value is the following:
      • txnid, record type, operation type, file id, operation key, operation value
        */
        #define WT_LOGC_KEY_FORMAT WT_UNCHECKED_STRING(III)
        #define WT_LOGC_VALUE_FORMAT WT_UNCHECKED_STRING(qIIIuu)

      The first value of the value_format is txnid, which is of type uint64_t, but the cursor is declared with int64_t.

      Examples code in "ex_log.c" and "ex_encrypt.c" that tests log cursors is written with uint64_t txnid as the return value.

      Possible solutions:

      • Correct the log cursor format from q to Q for txnid.
      • Update the example code that uses log tests to refer txnid as int64_t.

       

        Attachments

          Activity

            People

            Assignee:
            backlog-server-storage-engines Backlog - Storage Engines Team
            Reporter:
            haribabu.kommi Haribabu Kommi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: