summaryrefslogtreecommitdiff
path: root/util/status.cc
diff options
context:
space:
mode:
authoragiardullo <agiardullo@fb.com>2015-05-25 17:37:33 -0700
committeragiardullo <agiardullo@fb.com>2015-08-11 17:52:23 -0700
commitc2f2cb02142109dc411085e833f6a2265776fd32 (patch)
tree4a4e4baee5123fda0a70ef6c5464ac5d23441e5c /util/status.cc
parentc2868cbc52ca655f5ae28bcd07c4f9fbf0868da9 (diff)
Pessimistic Transactions
Summary: Initial implementation of Pessimistic Transactions. This diff contains the api changes discussed in D38913. This diff is pretty large, so let me know if people would prefer to meet up to discuss it. MyRocks folks: please take a look at the API in include/rocksdb/utilities/transaction[_db].h and let me know if you have any issues. Also, you'll notice a couple of TODOs in the implementation of RollbackToSavePoint(). After chatting with Siying, I'm going to send out a separate diff for an alternate implementation of this feature that implements the rollback inside of WriteBatch/WriteBatchWithIndex. We can then decide which route is preferable. Next, I'm planning on doing some perf testing and then integrating this diff into MongoRocks for further testing. Test Plan: Unit tests, db_bench parallel testing. Reviewers: igor, rven, sdong, yhchiang, yoshinorim Reviewed By: sdong Subscribers: hermanlee4, maykov, spetrunia, leveldb, dhruba Differential Revision: https://reviews.facebook.net/D40869
Diffstat (limited to 'util/status.cc')
-rw-r--r--util/status.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/status.cc b/util/status.cc
index d956eb476..3fe292dd3 100644
--- a/util/status.cc
+++ b/util/status.cc
@@ -67,6 +67,9 @@ std::string Status::ToString() const {
case kShutdownInProgress:
type = "Shutdown in progress: ";
break;
+ case kTimedOut:
+ type = "Operation timed out: ";
+ break;
case kAborted:
type = "Operation aborted: ";
break;