Skip to content

Commit

Permalink
[fix](stmt-forward) fix result missing (apache#17173)
Browse files Browse the repository at this point in the history
  • Loading branch information
TangSiyang2001 authored Feb 27, 2023
1 parent d5b1d34 commit 0db5880
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ private void forward() throws Exception {

boolean isReturnToPool = false;
try {
client.forward(params);
result = client.forward(params);
isReturnToPool = true;
} catch (TTransportException e) {
// wrap the raw exception.
Expand All @@ -146,7 +146,7 @@ private void forward() throws Exception {
} else {
LOG.warn("Forward statement " + ctx.getStmtId() + " to Master " + thriftAddress + " twice", e);
try {
client.forward(params);
result = client.forward(params);
isReturnToPool = true;
} catch (TException ex) {
throw exception;
Expand Down

0 comments on commit 0db5880

Please sign in to comment.