mirror of
https://github.com/sogou/workflow.git
synced 2026-10-29 11:36:47 +08:00
fix mysql_seqid
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user