Commit 5897bad1 authored by stewart@mysql.com's avatar stewart@mysql.com

BUG#20016 error in mgm protocol parser error message incorrect

fix display of mgm protocol parser error in mgmapi
parent e7ab0639
...@@ -361,8 +361,9 @@ ndb_mgm_call(NdbMgmHandle handle, const ParserRow<ParserDummy> *command_reply, ...@@ -361,8 +361,9 @@ ndb_mgm_call(NdbMgmHandle handle, const ParserRow<ParserDummy> *command_reply,
* Print some info about why the parser returns NULL * Print some info about why the parser returns NULL
*/ */
fprintf(handle->errstream, fprintf(handle->errstream,
"Error in mgm protocol parser. cmd: >%s< status: %d curr: %d\n", "Error in mgm protocol parser. cmd: >%s< status: %d curr: %s\n",
cmd, (Uint32)ctx.m_status, ctx.m_currentToken); cmd, (Uint32)ctx.m_status,
(ctx.m_currentToken)?ctx.m_currentToken:"NULL");
DBUG_PRINT("info",("ctx.status: %d, ctx.m_currentToken: %s", DBUG_PRINT("info",("ctx.status: %d, ctx.m_currentToken: %s",
ctx.m_status, ctx.m_currentToken)); ctx.m_status, ctx.m_currentToken));
} }
......
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