mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merged Performance Version 0.2.1 with latest 5.1 tree (last push 11 feb 14.01.13 2009)
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2000-2006 MySQL AB
|
||||
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@ -1690,6 +1690,7 @@ public:
|
||||
|
||||
class Delayed_insert :public ilink {
|
||||
uint locks_in_memory;
|
||||
thr_lock_type delayed_lock;
|
||||
public:
|
||||
THD thd;
|
||||
TABLE *table;
|
||||
@ -1731,6 +1732,8 @@ public:
|
||||
pthread_cond_init(&cond_client,NULL);
|
||||
VOID(pthread_mutex_lock(&LOCK_thread_count));
|
||||
delayed_insert_threads++;
|
||||
delayed_lock= global_system_variables.low_priority_updates ?
|
||||
TL_WRITE_LOW_PRIORITY : TL_WRITE;
|
||||
VOID(pthread_mutex_unlock(&LOCK_thread_count));
|
||||
}
|
||||
~Delayed_insert()
|
||||
@ -2540,7 +2543,7 @@ bool Delayed_insert::handle_inserts(void)
|
||||
table->use_all_columns();
|
||||
|
||||
thd_proc_info(&thd, "upgrading lock");
|
||||
if (thr_upgrade_write_delay_lock(*thd.lock->locks))
|
||||
if (thr_upgrade_write_delay_lock(*thd.lock->locks, delayed_lock))
|
||||
{
|
||||
/*
|
||||
This can happen if thread is killed either by a shutdown
|
||||
|
Reference in New Issue
Block a user