fixed bug where the user query would not be restored after checking slave lag if the operations changed to write because of running out of read servers.