Enable timestamp usage check for fast truncate on non-standalone build

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • WT12.0.0
    • Affects Version/s: None
    • Component/s: Transactions
    • None
    • Storage Engines, Storage Engines - Transactions
    • SE Transactions - 2025-10-10
    • 3

      We have enabled timestamped truncate for mongodb. Therefore, we can enable the timestamp usage check for fast truncate.

             case WT_TXN_OP_REF_DELETE:
                  /*
                   * For non-standalone builds, skip truncate commit timestamp validation, as MongoDB
                   * doesn't use timestamps with truncate operations.
                   */
      #ifdef WT_STANDALONE_BUILD
                  WT_ERR(__wt_txn_op_set_timestamp(session, op, true));
      #else
                  WT_ERR(__wt_txn_op_set_timestamp(session, op, false));
      #endif
      

            Assignee:
            Chenhao Qu
            Reporter:
            Chenhao Qu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: