diff options
author | jani@a88-113-38-195.elisa-laajakaista.fi <> | 2008-02-12 10:45:08 +0100 |
---|---|---|
committer | jani@a88-113-38-195.elisa-laajakaista.fi <> | 2008-02-12 10:45:08 +0100 |
commit | 1569f152dafc1ef2d85d899cb4f793a0a52bbfbb (patch) | |
tree | 6bb1b0914b732e9bc530d7abc3a67f3f05a9348b /mysys | |
parent | 62c5ec128563a8a4eaaf1b33c2f2f34987515f0b (diff) | |
parent | 301ab0d8b72bea5a924cd996f0a0378b3175e9db (diff) | |
download | mariadb-git-1569f152dafc1ef2d85d899cb4f793a0a52bbfbb.tar.gz |
Merge a88-113-38-195.elisa-laajakaista.fi:/home/my/bk/mysql-5.1-main
into a88-113-38-195.elisa-laajakaista.fi:/home/my/bk/mysql-5.1-marvel
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/thr_lock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mysys/thr_lock.c b/mysys/thr_lock.c index 7f7be4835a5..afe8f289089 100644 --- a/mysys/thr_lock.c +++ b/mysys/thr_lock.c @@ -405,6 +405,8 @@ wait_for_lock(struct st_lock_list *wait, THR_LOCK_DATA *data, wait->last= &data->next; } + statistic_increment(locks_waited, &THR_LOCK_lock); + /* Set up control struct to allow others to abort locks */ thread_var->current_mutex= &data->lock->mutex; thread_var->current_cond= cond; @@ -469,7 +471,6 @@ wait_for_lock(struct st_lock_list *wait, THR_LOCK_DATA *data, else { result= THR_LOCK_SUCCESS; - statistic_increment(locks_waited, &THR_LOCK_lock); if (data->lock->get_status) (*data->lock->get_status)(data->status_param, 0); check_locks(data->lock,"got wait_for_lock",0); |