1145
1151
old_message= session->enter_cond(COND_global_read_lock, LOCK_global_read_lock,
1146
1152
"Waiting for all running commits to finish");
1147
1153
while (protect_against_global_read_lock && !session->killed)
1149
1159
if ((error= test(session->killed)))
1150
1160
global_read_lock_blocks_commit--; // undo what we did