~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/flush.rst

Merge Revision revid:marko.makela@oracle.com-20100601140355-u3kxl0yl0ljl5tx9 from MySQL InnoDB

Original revid:marko.makela@oracle.com-20100601140355-u3kxl0yl0ljl5tx9

Original Authors: Marko Mäkelä <marko.makela@oracle.com>
Original commit message:
Merge a change from mysql-5.1-innodb:

  ------------------------------------------------------------
  revno: 3491
  revision-id: marko.makela@oracle.com-20100601134335-ccthwwru23kn09qw
  parent: marko.makela@oracle.com-20100601120751-1uq7bbta5n7ts0qr
  committer: Marko Mäkelä <marko.makela@oracle.com>
  branch nick: 5.1-innodb
  timestamp: Tue 2010-06-01 16:43:35 +0300
  message:
    Bug#48197: Concurrent rw_lock_free may cause assertion failure

    rw_lock_t: Remove magic_n unless UNIV_DEBUG is defined.
    rw_lock_free(): Invalidate magic_n only after removing from rw_lock_list.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
FLUSH
2
2
=====
3
3
 
4
 
The FLUSH statement clears or reloads different internal caches. One variant acquires a lock.
5
 
 
6
4
FLUSH 
7
5
    flush_option [, flush_option] ...
8
6
 
9
7
flush_option:
10
 
 
11
 
* TABLES table_name [, table_name]
12
 
        
13
 
(closes all specified tables, forces those tables in use to be closed, and flushes the query cache for the named tables)
14
 
 
15
 
* TABLES WITH READ LOCK
16
 
        
17
 
(closes all open tables and locks all tables for all databases with a global read lock*)
18
 
 
19
 
* LOGS
20
 
        
21
 
(closes and reopens all log files--if binary logging is enabled, the sequence number of the binary log file is incremented by one relative to the previous file)
22
 
 
23
 
* STATUS
24
 
        
25
 
(adds the current thread's session status variable values to the global values and resets the session values to zero)
 
8
    | TABLES table_name [, table_name] ...
 
9
    | TABLES WITH READ LOCK
 
10
    | LOGS
 
11
    | STATUS
26
12
    
27
13
To release a FLUSH TABLES WITH READ LOCK, you must issue an UNLOCK TABLES.