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

Log cursor value_format change from qIIIuu to QIIIuu

      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.

       

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            haribabu.kommi@mongodb.com Haribabu Kommi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: