Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/rootserver/ob_bootstrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@

#define USING_LOG_PREFIX BOOTSTRAP

#if defined(__EMSCRIPTEN__)
#include "common/ob_timeout_ctx.h"
#endif
#include "lib/stat/ob_diagnostic_info_guard.h"
#include "rootserver/ob_bootstrap.h"
#include "rootserver/ob_runtime_ddl_service.h"
#include "share/config/ob_config_helper.h"
#include "share/rc/ob_server_runtime.h"

#include "share/ob_global_stat_proxy.h"
#include "share/ob_share_util.h"
#include "rootserver/ob_table_creator.h"
#include "rootserver/ob_local_management_service.h"
#include "share/inner_table/ob_load_inner_table_schema.h"
Expand Down Expand Up @@ -672,7 +672,12 @@ int ObBootstrap::init_global_stat()
int ret = OB_SUCCESS;
ObMySQLProxy &sql_proxy = ddl_service_.get_sql_proxy();
ObMySQLTransaction trans;
ObTimeoutCtx timeout_ctx;
// The core table is cold during bootstrap; its global-stat update needs the
// internal SQL budget rather than the short default RPC timeout.
if (OB_FAIL(check_inner_stat())) {
} else if (OB_FAIL(ObShareUtil::set_default_timeout_ctx(
timeout_ctx, config::internal_sql_execute_timeout()))) {
} else {
const int64_t baseline_schema_version = OB_INVALID_VERSION; // OB_INVALID_VERSION == -1
const SCN snapshot_gc_scn = SCN::min_scn();
Expand Down
Loading