Delayed-Insert Thread States
739
The thread is waiting for a global read lock obtained by another thread (with
FLUSH TABLES WITH
READ LOCK
) to be released.
•
Waiting for tables
,
Waiting for table
The thread got a notification that the underlying structure for a table has changed and it needs to
reopen the table to get the new structure. However, to reopen the table, it must wait until all other
threads have closed the table in question.
This notification takes place if another thread has used
FLUSH TABLES
or one of the following
statements on the table in question:
FLUSH TABLES tbl_name
,
ALTER TABLE
,
RENAME TABLE
,
REPAIR TABLE
,
ANALYZE TABLE
, or
OPTIMIZE TABLE
.
•
Waiting on cond
A generic state in which the thread is waiting for a condition to become true. No specific state
information is available.
•
Waiting to get readlock
The thread has issued a
FLUSH TABLES WITH READ LOCK
statement to obtain a global read lock
and is waiting to obtain the lock.
•
Writing to net
The server is writing a packet to the network.
8.10.3. Delayed-Insert Thread States
These thread states are associated with processing for
DELAYED
inserts (see
Section 13.2.5.2,
“
INSERT DELAYED
Syntax”
). Some states are associated with connection threads that process
INSERT DELAYED
statements from clients. Other states are associated with delayed-insert handler
threads that insert the rows. There is a delayed-insert handler thread for each table for which
INSERT
DELAYED
statements are issued.
States associated with a connection thread that processes an
INSERT DELAYED
statement from the
client:
•
allocating local table
The thread is preparing to feed rows to the delayed-insert handler thread.
•
Creating delayed handler
The thread is creating a handler for
DELAYED
inserts.
•
got handler lock
This occurs before the
allocating local table
state and after the
waiting for handler
lock
state, when the connection thread gets access to the delayed-insert handler thread.
•
got old table
This occurs after the
waiting for handler open
state. The delayed-insert handler thread
has signaled that it has ended its initialization phase, which includes opening the table for delayed
inserts.
•
storing row into queue
The thread is adding a new row to the list of rows that the delayed-insert handler thread must insert.
•
waiting for delay_list
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...