summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2012-03-28 20:25:31 +0200
committerSergei Golubchik <sergii@pisem.net>2012-03-28 20:25:31 +0200
commit867296c3edc4502093f7b706e7ac4c1670aa9515 (patch)
treeafcc8157b0b71a28edbcca6b862e6ca854fc743c /mysys
parent0d5adca0de0a51b1f0bd49045fc4062eac7d1d25 (diff)
parent6131d708e889cd4f93490c22bfee00d0728edfd2 (diff)
downloadmariadb-git-867296c3edc4502093f7b706e7ac4c1670aa9515.tar.gz
5.3 merge
Diffstat (limited to 'mysys')
-rw-r--r--mysys/thr_lock.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mysys/thr_lock.c b/mysys/thr_lock.c
index e99956f9c8f..a7cbfa07db2 100644
--- a/mysys/thr_lock.c
+++ b/mysys/thr_lock.c
@@ -1168,6 +1168,9 @@ thr_multi_lock(THR_LOCK_DATA **data, uint count, THR_LOCK_INFO *owner,
if (result != THR_LOCK_SUCCESS)
{ /* Aborted */
thr_multi_unlock(data,(uint) (pos-data), 0);
+ /* Mark all requested locks as TL_UNLOCK (to simplify lock checking) */
+ for ( ; pos < end ; pos++)
+ (*pos)->type= TL_UNLOCK;
DBUG_RETURN(result);
}
DEBUG_SYNC_C("thr_multi_lock_after_thr_lock");