Commit 87f0052e authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:3015], grab directory read lock in update_single

git-svn-id: file:///svn/toku/tokudb@25509 c7de825b-a66e-492c-adef-691d508d4ae1
parent 444f563d
...@@ -4630,6 +4630,9 @@ update_single( ...@@ -4630,6 +4630,9 @@ update_single(
lock_flags = get_prelocked_flags(flags); lock_flags = get_prelocked_flags(flags);
remaining_flags = flags & ~lock_flags; remaining_flags = flags & ~lock_flags;
r = toku_grab_read_lock_on_directory(db, txn);
if (r != 0) goto cleanup;
BOOL key_eq = dbt_cmp(old_key, new_key) == 0; BOOL key_eq = dbt_cmp(old_key, new_key) == 0;
if (!key_eq) { if (!key_eq) {
//Check overwrite constraints only in the case where //Check overwrite constraints only in the case where
......
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