Commit 076fc1a6 authored by serg@serg.mysql.com's avatar serg@serg.mysql.com

myrg_open.c:

  comment fixed, bad flag hack removed
parent 5a54f862
......@@ -25,8 +25,8 @@
/*
open a MyISAM MERGE table
if handle_locking is 0 then exit with error if some database is locked
if handle_locking is 1 then wait if database is locked
if handle_locking is 0 then exit with error if some table is locked
if handle_locking is 1 then wait if table is locked
*/
......@@ -78,7 +78,7 @@ MYRG_INFO *myrg_open(const char *name, int mode, int handle_locking)
sizeof(name_buff)-1-dir_length));
VOID(cleanup_dirname(buff,name_buff));
}
if (!(isam=mi_open(buff,mode,test(handle_locking))))
if (!(isam=mi_open(buff,mode,(handle_locking?HA_OPEN_WAIT_IF_LOCKED:0))))
goto err;
files++;
last_isam=isam;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment