summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--storage/innobase/lock/lock0lock.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/innobase/lock/lock0lock.cc b/storage/innobase/lock/lock0lock.cc
index 54227233bc4..d456201227c 100644
--- a/storage/innobase/lock/lock0lock.cc
+++ b/storage/innobase/lock/lock0lock.cc
@@ -99,6 +99,8 @@ void lock_sys_t::hash_table::resize(ulint n)
ut_ad(!lock->is_table());
hash_cell_t *c= calc_hash(lock->un_member.rec_lock.page_id.fold(),
new_n_cells) + new_array;
+ lock_t *next= lock->hash;
+ lock->hash= nullptr;
if (!c->node)
c->node= lock;
else
@@ -107,8 +109,6 @@ void lock_sys_t::hash_table::resize(ulint n)
c->node= next;
static_cast<lock_t*>(c->node)->hash= lock;
}
- lock_t *next= lock->hash;
- lock->hash= nullptr;
lock= next;
}
while (lock);