[CP] adjust update last packet interface

This commit is contained in:
obdev
2022-11-07 17:05:36 +00:00
committed by wangzelin.wzl
parent 05fd6fcff7
commit 1ae305f255
11 changed files with 52 additions and 27 deletions

View File

@ -574,10 +574,11 @@ int ObMPStmtFetch::response_result(pl::ObPLCursorInfo &cursor,
// for proxy
// in multi-stmt, send extra ok packet in the last stmt(has no more result)
if (OB_SUCC(ret)) {
if (!has_ok_packet()) {
update_last_pkt_pos();
}
if (OB_FAIL(response_packet(eofp, &session))) {
if (OB_FAIL(packet_sender_.alloc_ezbuf())) {
LOG_WARN("failed to alloc easy buf", K(ret));
} else if (!has_ok_packet() && OB_FAIL(update_last_pkt_pos())) {
LOG_WARN("failed to update last packet pos", K(ret));
} else if (OB_FAIL(response_packet(eofp, &session))) {
LOG_WARN("response packet fail", K(ret));
} else if (last_row && !cursor.is_scrollable()
&& !cursor.is_streaming()