fix pointer print issue
when response_result fail, it will try to print row value. When the failure is caused by ctrl+c, neteasy memory is released in response_result function and row memory is invalid.
This commit is contained in:
parent
4a0238e2da
commit
ad8465b5ce
@ -256,7 +256,7 @@ int ObSyncCmdDriver::response_query_result(ObMySQLResultSet& result)
|
||||
ctx_.schema_guard_,
|
||||
tmp_session->get_effective_tenant_id()));
|
||||
if (OB_FAIL(sender_.response_packet(rp))) {
|
||||
LOG_WARN("response packet fail", K(ret), K(*row));
|
||||
LOG_WARN("response packet fail", K(ret), KP(row));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -264,7 +264,7 @@ int ObSyncPlanDriver::response_query_result(
|
||||
ctx_.schema_guard_,
|
||||
session_.get_effective_tenant_id()));
|
||||
if (OB_FAIL(sender_.response_packet(rp))) {
|
||||
LOG_WARN("response packet fail", K(ret), K(*row), K(row_num), K(can_retry));
|
||||
LOG_WARN("response packet fail", K(ret), KP(row), K(row_num), K(can_retry));
|
||||
// break;
|
||||
} else {
|
||||
// LOG_DEBUG("response row succ", K(*row));
|
||||
|
Loading…
x
Reference in New Issue
Block a user