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

Remove usages of "round_to_oldest" configuration

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT3.2.0, 4.1.11
    • Component/s: None
    • Labels:
    • Story Points:
      2
    • Sprint:
      Storage Engines 2019-04-22

      Description

       963__wt_txn_set_timestamp(WT_SESSION_IMPL *session, const char *cfg[])
       964{
       965        WT_CONFIG_ITEM cval;
       966        WT_DECL_RET;
       967        WT_TXN *txn = &session->txn;
       968        wt_timestamp_t ts;
       969
       970        WT_TRET(__wt_txn_context_check(session, true));
       971
       972        /* Look for round_to_oldest configuration. */
          CID 112697 (#1 of 1): Unused value (UNUSED_VALUE)returned_value: Assigning value from __wt_config_gets_def(session, cfg, "round_to_oldest", 0, &cval) to ret here, but that stored value is overwritten before it can be used.
       973        ret = __wt_config_gets_def(session, cfg, "round_to_oldest", 0, &cval);
       974        if (cval.val)
       975                F_SET(txn, WT_TXN_TS_ROUND_READ);
       976
       977        /* Look for a commit timestamp. */
          value_overwrite: Overwriting previous write to ret with value from __wt_config_gets_def(session, cfg, "commit_timestamp", 0, &cval).
       978        ret = __wt_config_gets_def(session, cfg, "commit_timestamp", 0, &cval);
      

        Attachments

          Activity

            People

            • Assignee:
              alex.cameron Alex Cameron
              Reporter:
              milkie Eric Milkie
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: