提交 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,7 +38,9 @@ public: ...@@ -37,7 +38,9 @@ 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());
} }
disconnect(); if (obmysql::OB_MYSQL_COM_STMT_SEND_LONG_DATA == pkt.get_cmd()) {
disconnect();
}
} }
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册