code: func (s *Store) TxnRW(idx uint64, ops structs.TxnOps) (structs.TxnResults, structs.TxnErrors) {
  	tx := s.db.Txn(true)
  	defer tx.Abort()
  
  	results, errors := s.txnDispatch(tx, idx, ops)
  	if len(errors) > 0 {
  		return nil, errors
  	}
  
  	tx.Commit()
  	return results, nil
  }
docs: // TxnRW tries to run the given operations all inside a single transaction. If
  // any of the operations fail, the entire transaction will be rolled back. This
  // is done in a full write transaction on the state store, so reads and writes
  // are possible