[Enhancement](Stmt)ShowPartitionsStmt support forward to master #16359
Co-authored-by: duanxujian <duanxujian@jd.com>
This commit is contained in:
@ -271,4 +271,13 @@ public class ShowPartitionsStmt extends ShowStmt {
|
||||
return toSql();
|
||||
}
|
||||
|
||||
@Override
|
||||
public RedirectStatus getRedirectStatus() {
|
||||
if (ConnectContext.get().getSessionVariable().getForwardToMaster()) {
|
||||
return RedirectStatus.FORWARD_NO_SYNC;
|
||||
} else {
|
||||
return RedirectStatus.NO_FORWARD;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user