[CP] Support sequence currval session sync via obproxy

This commit is contained in:
hezuojiao
2023-05-10 14:09:18 +00:00
committed by ob-robot
parent 691277a794
commit ed4922aca0
4 changed files with 191 additions and 2 deletions

View File

@ -765,6 +765,14 @@ int ObCmdExecutor::execute(ObExecContext &ctx, ObICmd &cmd)
}
case stmt::T_DROP_SEQUENCE: {
DEFINE_EXECUTE_CMD(ObDropSequenceStmt, ObDropSequenceExecutor);
if (OB_SUCC(ret)) {
ObDropSequenceStmt &stmt = *(static_cast<ObDropSequenceStmt*>(&cmd));
const uint64_t tenant_id = stmt.get_arg().get_tenant_id();
const uint64_t sequence_id = stmt.get_arg().get_sequence_id();
if (OB_FAIL(my_session->drop_sequence_value_if_exists(tenant_id, sequence_id))) {
LOG_WARN("failed to drop sequence value from session", K(ret));
}
}
break;
}
case stmt::T_ALTER_SEQUENCE: {