MXS-1824: Track only the opening of cursors

Whether a cursor is open or not does not matter as long as the attempt to
open a cursor is detected.
This commit is contained in:
Markus Mäkelä
2018-04-25 09:24:52 +03:00
parent 08230ef24c
commit 0df326d581
3 changed files with 12 additions and 11 deletions

View File

@ -596,8 +596,9 @@ bool reply_is_complete(SRWBackend& backend, GWBUF *buffer)
LOG_RS(backend, REPLY_STATE_RSET_ROWS);
backend->set_reply_state(REPLY_STATE_RSET_ROWS);
if (backend->cursor_is_open())
if (backend->is_opening_cursor())
{
backend->set_cursor_opened();
MXS_INFO("Cursor successfully opened");
LOG_RS(backend, REPLY_STATE_DONE);
backend->set_reply_state(REPLY_STATE_DONE);