patch 4.0
This commit is contained in:
@ -15,26 +15,27 @@
|
||||
|
||||
#include "share/ob_define.h"
|
||||
#include "sql/resolver/cmd/ob_alter_system_stmt.h"
|
||||
#include "sql/resolver/cmd/ob_switch_tenant_stmt.h"
|
||||
#include "sql/resolver/cmd/ob_clear_balance_task_stmt.h"
|
||||
|
||||
namespace oceanbase {
|
||||
namespace sql {
|
||||
namespace oceanbase
|
||||
{
|
||||
namespace sql
|
||||
{
|
||||
class ObExecContext;
|
||||
class ObAdminServerStmt;
|
||||
class ObAdminZoneStmt;
|
||||
class ObBootstrapStmt;
|
||||
|
||||
#define DEF_SIMPLE_EXECUTOR(name) \
|
||||
class name##Executor { \
|
||||
public: \
|
||||
name##Executor() \
|
||||
{} \
|
||||
virtual ~name##Executor() \
|
||||
{} \
|
||||
int execute(ObExecContext& ctx, name##Stmt& stmt); \
|
||||
\
|
||||
private: \
|
||||
DISALLOW_COPY_AND_ASSIGN(name##Executor); \
|
||||
#define DEF_SIMPLE_EXECUTOR(name) \
|
||||
class name##Executor \
|
||||
{ \
|
||||
public: \
|
||||
name##Executor() {} \
|
||||
virtual ~name##Executor() {} \
|
||||
int execute(ObExecContext &ctx, name##Stmt &stmt); \
|
||||
private: \
|
||||
DISALLOW_COPY_AND_ASSIGN(name##Executor); \
|
||||
}
|
||||
|
||||
DEF_SIMPLE_EXECUTOR(ObAdminServer);
|
||||
@ -51,36 +52,32 @@ DEF_SIMPLE_EXECUTOR(ObFlushIlogCache);
|
||||
|
||||
DEF_SIMPLE_EXECUTOR(ObFlushDagWarnings);
|
||||
|
||||
DEF_SIMPLE_EXECUTOR(ObLoadBaseline);
|
||||
|
||||
DEF_SIMPLE_EXECUTOR(ObSwitchReplicaRole);
|
||||
|
||||
DEF_SIMPLE_EXECUTOR(ObSwitchRSRole);
|
||||
|
||||
DEF_SIMPLE_EXECUTOR(ObDropReplica);
|
||||
|
||||
DEF_SIMPLE_EXECUTOR(ObChangeReplica);
|
||||
|
||||
DEF_SIMPLE_EXECUTOR(ObMigrateReplica);
|
||||
|
||||
DEF_SIMPLE_EXECUTOR(ObReportReplica);
|
||||
|
||||
DEF_SIMPLE_EXECUTOR(ObRecycleReplica);
|
||||
|
||||
DEF_SIMPLE_EXECUTOR(ObAdminMerge);
|
||||
|
||||
DEF_SIMPLE_EXECUTOR(ObAdminRecovery);
|
||||
|
||||
DEF_SIMPLE_EXECUTOR(ObClearRoottable);
|
||||
|
||||
DEF_SIMPLE_EXECUTOR(ObRefreshSchema);
|
||||
|
||||
DEF_SIMPLE_EXECUTOR(ObRefreshMemStat);
|
||||
|
||||
DEF_SIMPLE_EXECUTOR(ObWashMemFragmentation);
|
||||
|
||||
DEF_SIMPLE_EXECUTOR(ObRefreshIOCalibraiton);
|
||||
|
||||
DEF_SIMPLE_EXECUTOR(ObSetConfig);
|
||||
|
||||
DEF_SIMPLE_EXECUTOR(ObClearLocationCache);
|
||||
|
||||
DEF_SIMPLE_EXECUTOR(ObReloadGts);
|
||||
|
||||
DEF_SIMPLE_EXECUTOR(ObReloadUnit);
|
||||
|
||||
DEF_SIMPLE_EXECUTOR(ObReloadServer);
|
||||
@ -101,8 +98,6 @@ DEF_SIMPLE_EXECUTOR(ObRunJob);
|
||||
DEF_SIMPLE_EXECUTOR(ObRunUpgradeJob);
|
||||
DEF_SIMPLE_EXECUTOR(ObStopUpgradeJob);
|
||||
|
||||
DEF_SIMPLE_EXECUTOR(ObBootstrap);
|
||||
|
||||
DEF_SIMPLE_EXECUTOR(ObSetTP);
|
||||
|
||||
DEF_SIMPLE_EXECUTOR(ObRefreshTimeZoneInfo);
|
||||
@ -113,12 +108,15 @@ DEF_SIMPLE_EXECUTOR(ObDisableSqlThrottle);
|
||||
|
||||
DEF_SIMPLE_EXECUTOR(ObSetDiskValid);
|
||||
DEF_SIMPLE_EXECUTOR(ObClearBalanceTask);
|
||||
DEF_SIMPLE_EXECUTOR(ObSwitchTenant);
|
||||
DEF_SIMPLE_EXECUTOR(ObAddDisk);
|
||||
DEF_SIMPLE_EXECUTOR(ObDropDisk);
|
||||
|
||||
DEF_SIMPLE_EXECUTOR(ObArchiveLog);
|
||||
DEF_SIMPLE_EXECUTOR(ObBackupDatabase);
|
||||
DEF_SIMPLE_EXECUTOR(ObBackupManage);
|
||||
DEF_SIMPLE_EXECUTOR(ObBackupClean);
|
||||
DEF_SIMPLE_EXECUTOR(ObDeletePolicy);
|
||||
DEF_SIMPLE_EXECUTOR(ObBackupBackupset);
|
||||
DEF_SIMPLE_EXECUTOR(ObBackupArchiveLog);
|
||||
DEF_SIMPLE_EXECUTOR(ObBackupBackupPiece);
|
||||
@ -126,39 +124,50 @@ DEF_SIMPLE_EXECUTOR(ObBackupSetEncryption);
|
||||
DEF_SIMPLE_EXECUTOR(ObBackupSetDecryption);
|
||||
DEF_SIMPLE_EXECUTOR(ObAddRestoreSource);
|
||||
DEF_SIMPLE_EXECUTOR(ObClearRestoreSource);
|
||||
DEF_SIMPLE_EXECUTOR(ObTableTTL);
|
||||
|
||||
class ObCancelTaskExecutor {
|
||||
DEF_SIMPLE_EXECUTOR(ObSetRegionBandwidth);
|
||||
|
||||
DEF_SIMPLE_EXECUTOR(ObCheckpointSlog);
|
||||
DEF_SIMPLE_EXECUTOR(ObBootstrap);
|
||||
|
||||
class ObCancelTaskExecutor
|
||||
{
|
||||
public:
|
||||
ObCancelTaskExecutor()
|
||||
{}
|
||||
{
|
||||
}
|
||||
virtual ~ObCancelTaskExecutor()
|
||||
{}
|
||||
int execute(ObExecContext& ctx, ObCancelTaskStmt& stmt);
|
||||
{
|
||||
}
|
||||
int execute(ObExecContext &ctx, ObCancelTaskStmt &stmt);
|
||||
|
||||
private:
|
||||
int parse_task_id(const common::ObString& task_id_str, share::ObTaskId& task_id);
|
||||
int fetch_sys_task_info(ObExecContext& ctx, const common::ObString& task_id, common::ObAddr& task_server);
|
||||
|
||||
int parse_task_id(const common::ObString &task_id_str, share::ObTaskId &task_id);
|
||||
int fetch_sys_task_info(
|
||||
ObExecContext &ctx,
|
||||
const common::ObString &task_id,
|
||||
common::ObAddr &task_server);
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(ObCancelTaskExecutor);
|
||||
};
|
||||
|
||||
class ObChangeTenantExecutor {
|
||||
class ObChangeTenantExecutor
|
||||
{
|
||||
public:
|
||||
ObChangeTenantExecutor()
|
||||
{}
|
||||
{
|
||||
}
|
||||
virtual ~ObChangeTenantExecutor()
|
||||
{}
|
||||
int execute(ObExecContext& ctx, ObChangeTenantStmt& stmt);
|
||||
{
|
||||
}
|
||||
int execute(ObExecContext &ctx, ObChangeTenantStmt &stmt);
|
||||
|
||||
private:
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(ObChangeTenantExecutor);
|
||||
};
|
||||
|
||||
#undef DEF_SIMPLE_EXECUTOR
|
||||
|
||||
} // end namespace sql
|
||||
} // end namespace oceanbase
|
||||
#endif // OCEANBASE_SQL_ENGINE_CMD_OB_ALTER_SYSTEM_EXECUTOR_
|
||||
} // end namespace sql
|
||||
} // end namespace oceanbase
|
||||
#endif // OCEANBASE_SQL_ENGINE_CMD_OB_ALTER_SYSTEM_EXECUTOR_
|
||||
|
||||
Reference in New Issue
Block a user