rocksdb/utilities/transactions
agiardullo fe93bf9b5d Transaction::UndoGetForUpdate
Summary: MyRocks wants to be able to un-lock a key that was just locked by GetForUpdate().  To do this safely, I am now keeping track of the number of reads(for update) and writes for each key in a transaction.  UndoGetForUpdate() will only unlock a key if it hasn't been written and the read count reaches 0.

Test Plan: more unit tests

Reviewers: igor, rven, yhchiang, spetrunia, sdong

Reviewed By: spetrunia, sdong

Subscribers: spetrunia, dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D47043
2016-02-09 10:46:11 -08:00
..
optimistic_transaction_db_impl.cc Pessimistic Transactions 2015-08-11 17:52:23 -07:00
optimistic_transaction_db_impl.h Pessimistic Transactions 2015-08-11 17:52:23 -07:00
optimistic_transaction_impl.cc Transaction::UndoGetForUpdate 2016-02-09 10:46:11 -08:00
optimistic_transaction_impl.h Transaction::UndoGetForUpdate 2016-02-09 10:46:11 -08:00
optimistic_transaction_test.cc Transaction::UndoGetForUpdate 2016-02-09 10:46:11 -08:00
transaction_base.cc Transaction::UndoGetForUpdate 2016-02-09 10:46:11 -08:00
transaction_base.h Transaction::UndoGetForUpdate 2016-02-09 10:46:11 -08:00
transaction_db_impl.cc Removing data race from expirable transactions 2016-02-02 18:37:44 -08:00
transaction_db_impl.h Removing data race from expirable transactions 2016-02-02 18:37:44 -08:00
transaction_db_mutex_impl.cc Do not use timed_mutex in TransactionDB 2015-12-18 17:26:02 -08:00
transaction_db_mutex_impl.h TransactionDB Custom Locking API 2015-09-08 17:03:57 -07:00
transaction_impl.cc Transaction::UndoGetForUpdate 2016-02-09 10:46:11 -08:00
transaction_impl.h Transaction::UndoGetForUpdate 2016-02-09 10:46:11 -08:00
transaction_lock_mgr.cc Removing data race from expirable transactions 2016-02-02 18:37:44 -08:00
transaction_lock_mgr.h Removing data race from expirable transactions 2016-02-02 18:37:44 -08:00
transaction_test.cc Transaction::UndoGetForUpdate 2016-02-09 10:46:11 -08:00
transaction_util.cc Transaction::UndoGetForUpdate 2016-02-09 10:46:11 -08:00
transaction_util.h Transaction::UndoGetForUpdate 2016-02-09 10:46:11 -08:00