make transaction WriteOptions modifiable

main
Reid Horuff 9 years ago
parent 4f2b0946d1
commit 892e9d3047
  1. 2
      include/rocksdb/utilities/transaction.h
  2. 2
      utilities/transactions/transaction_base.h

@ -356,7 +356,7 @@ class Transaction {
virtual void SetLockTimeout(int64_t timeout) = 0;
// Return the WriteOptions that will be used during Commit()
virtual const WriteOptions* GetWriteOptions() = 0;
virtual WriteOptions* GetWriteOptions() = 0;
// Reset the WriteOptions that will be used during Commit().
virtual void SetWriteOptions(const WriteOptions& write_options) = 0;

@ -204,7 +204,7 @@ class TransactionBaseImpl : public Transaction {
// with writes in other transactions.
const TransactionKeyMap& GetTrackedKeys() const { return tracked_keys_; }
const WriteOptions* GetWriteOptions() override { return &write_options_; }
WriteOptions* GetWriteOptions() override { return &write_options_; }
void SetWriteOptions(const WriteOptions& write_options) override {
write_options_ = write_options;

Loading…
Cancel
Save