Commit 91f1cebb authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:4286], add comment to get_and_pin_nonblocking

git-svn-id: file:///svn/toku/tokudb@37946 c7de825b-a66e-492c-adef-691d508d4ae1
parent 37a1a7b0
......@@ -2421,7 +2421,9 @@ int toku_cachetable_get_and_pin_nonblocking (
//
// In Dr. No, the ydb lock ensures that only one client may be successfully
// doing a query on a dictionary at any given time. This function
// is called with the ydb lock held. So, if there is a write lock grabbed
// is called with the ydb lock held. This implies that only ONE client can ever be
// in get_and_pin_nonblocking while the ydb lock is held.
// So, if there is a write lock grabbed
// on the PAIR that we want to lock, then some expensive operation
// MUST be happening (read from disk, write to disk, flush, etc...),
// and we should run the unlockers and release the ydb lock
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment