patch 4.0

This commit is contained in:
wangzelin.wzl
2022-10-24 10:34:53 +08:00
parent 4ad6e00ec3
commit 93a1074b0c
10533 changed files with 2588271 additions and 2299373 deletions

View File

@ -16,43 +16,27 @@
#include "sql/engine/ob_exec_context.h"
#include "sql/session/ob_sql_session_mgr.h"
namespace oceanbase {
namespace sql {
class ObDesExecContext : public ObExecContext {
namespace oceanbase
{
namespace sql
{
class ObDesExecContext : public ObExecContext
{
public:
explicit ObDesExecContext(ObSQLSessionMgr* session_mgr);
ObDesExecContext(common::ObIAllocator& allocator, ObSQLSessionMgr* session_mgr);
ObDesExecContext(common::ObIAllocator &allocator, ObSQLSessionMgr *session_mgr);
virtual ~ObDesExecContext();
int create_my_session(uint64_t tenant_id);
virtual int deserialize(const char* buf, const int64_t data_len, int64_t& pos);
void cleanup_session();
void show_session();
void hide_session();
protected:
ObFreeSessionCtx free_session_ctx_;
ObSqlCtx sql_ctx_;
private:
DISALLOW_COPY_AND_ASSIGN(ObDesExecContext);
};
class ObDistributedExecContext : public ObDesExecContext {
public:
explicit ObDistributedExecContext(ObSQLSessionMgr* session_mgr);
ObDistributedExecContext(common::ObIAllocator& allocator, ObSQLSessionMgr* session_mgr);
virtual ~ObDistributedExecContext();
VIRTUAL_NEED_SERIALIZE_AND_DESERIALIZE;
private:
const char* phy_plan_ctx_buf_;
int64_t phy_plan_ctx_len_;
const char* my_session_buf_;
int64_t my_session_len_;
const char* task_executor_ctx_buf_;
int64_t task_executor_ctx_len_;
DISALLOW_COPY_AND_ASSIGN(ObDistributedExecContext);
};
} // namespace sql
} // namespace oceanbase
}
}
#endif /* OCEANBASE_SQL_ENGINE_OB_DES_EXEC_CONTEXT_ */