提交 8c820494 编写于 作者: L LiuYoung00 提交者: wangzelin.wzl

only send long data disconnect when get not support portocol

上级 dd142a4f
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#define _OBMP_DEFAULT_H #define _OBMP_DEFAULT_H
#include "observer/mysql/obmp_base.h" #include "observer/mysql/obmp_base.h"
namespace oceanbase { namespace oceanbase {
namespace observer { namespace observer {
// this processor always returns NOT_SUPPORTED error to client // this processor always returns NOT_SUPPORTED error to client
...@@ -37,8 +38,10 @@ public: ...@@ -37,8 +38,10 @@ public:
} else { } else {
SERVER_LOG(WARN, "MySQL command not supported", "cmd", pkt.get_cmd()); SERVER_LOG(WARN, "MySQL command not supported", "cmd", pkt.get_cmd());
} }
if (obmysql::OB_MYSQL_COM_STMT_SEND_LONG_DATA == pkt.get_cmd()) {
disconnect(); disconnect();
} }
}
return ret; return ret;
} }
int deserialize() int deserialize()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册