From a3db3575ab6a33f74beb2d7316d02f2c699cb0ed Mon Sep 17 00:00:00 2001 From: XieHan Date: Thu, 3 Jun 2021 20:34:12 +0800 Subject: [PATCH] fix mysql_seqid --- src/factory/MySQLTaskImpl.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/factory/MySQLTaskImpl.cc b/src/factory/MySQLTaskImpl.cc index e9097d9c..12fa333d 100644 --- a/src/factory/MySQLTaskImpl.cc +++ b/src/factory/MySQLTaskImpl.cc @@ -241,7 +241,7 @@ CommMessageOut *ComplexMySQLTask::message_out() auto *conn = this->get_connection(); auto *ctx = (struct handshake_ctx *)conn->get_context(); - req->set_seqid(ctx->mysql_seqid); + req->set_seqid(ctx->mysql_seqid++); return req; } @@ -254,7 +254,7 @@ CommMessageOut *ComplexMySQLTask::message_out() auto *conn = this->get_connection(); auto *ctx = (struct handshake_ctx *)conn->get_context(); - req->set_seqid(ctx->mysql_seqid); + req->set_seqid(ctx->mysql_seqid++); req->set_challenge(ctx->challenge); delete ctx; conn->set_context(NULL, nullptr);