Non-blocking "set read_only"

Description

It can be dangerous to run "set read_only" on a production server because it can block in close_cached_tables. More details about the pain this caused previously are at:
http://mysqlha.blogspot.com/2008/07/what-exactly-does-flush-tables-with.html

Per the code in set_var.cc:

Can there be a variant that doesn't do #2? My workload doesn't use MyISAM and I don't know if #2 is done because of MyISAM. Calling close_cached_tables seems like a heavy way to force LOCK TABLEs to be unlocked. Any long running queries will cause #2 to block.

See also http://lists.mysql.com/commits/142825

Assignee

Alexey Botchkov

Reporter

Rasmus Johansson

Labels

Time tracking

16h

Fix versions

Due date

2012/05/16

Priority

Major
Configure