revise static assert comment according to latest data structure

This commit is contained in:
hiddenbomb 2023-11-09 15:07:09 +00:00 committed by ob-robot
parent ef593860ca
commit 71e89f4ebf
87 changed files with 3 additions and 3 deletions

View File

@ -3263,7 +3263,7 @@ int ObDDLTaskRecordOperator::select_for_update(
} else {
SMART_VAR(ObMySQLProxy::MySQLResult, res) {
sqlclient::ObMySQLResult *result = NULL;
if (OB_FAIL(sql_string.assign_fmt("SELECT status, execution_id FROM %s WHERE task_id = %lu FOR UPDATE NOWAIT",
if (OB_FAIL(sql_string.assign_fmt("SELECT status, execution_id FROM %s WHERE task_id = %lu FOR UPDATE",
OB_ALL_DDL_TASK_STATUS_TNAME, task_id))) {
LOG_WARN("assign sql string failed", K(ret), K(task_id), K(tenant_id));
} else if (OB_FAIL(trans.read(res, tenant_id, sql_string.ptr()))) {

0
src/share/CMakeLists.txt Executable file → Normal file
View File

0
src/share/backup/ob_backup_data_table_operator.cpp Executable file → Normal file
View File

0
src/share/backup/ob_backup_data_table_operator.h Executable file → Normal file
View File

0
src/share/backup/ob_backup_path.cpp Executable file → Normal file
View File

0
src/share/backup/ob_backup_path.h Executable file → Normal file
View File

0
src/share/backup/ob_backup_struct.cpp Executable file → Normal file
View File

0
src/share/backup/ob_backup_struct.h Executable file → Normal file
View File

0
src/share/ls/ob_ls_creator.cpp Executable file → Normal file
View File

0
src/share/ls/ob_ls_creator.h Executable file → Normal file
View File

0
src/share/ls/ob_ls_operator.cpp Executable file → Normal file
View File

0
src/share/ls/ob_ls_operator.h Executable file → Normal file
View File

0
src/share/ls/ob_ls_status_operator.cpp Executable file → Normal file
View File

0
src/share/ls/ob_ls_status_operator.h Executable file → Normal file
View File

0
src/share/scheduler/ob_dag_scheduler_config.h Executable file → Normal file
View File

0
src/share/scheduler/ob_dag_warning_history_mgr.h Executable file → Normal file
View File

0
src/share/scheduler/ob_tenant_dag_scheduler.cpp Executable file → Normal file
View File

0
src/storage/CMakeLists.txt Executable file → Normal file
View File

0
src/storage/access/ob_dml_param.cpp Executable file → Normal file
View File

0
src/storage/access/ob_dml_param.h Executable file → Normal file
View File

0
src/storage/access/ob_index_tree_prefetcher.cpp Executable file → Normal file
View File

0
src/storage/access/ob_table_scan_iterator.cpp Executable file → Normal file
View File

0
src/storage/backup/ob_backup_ctx.cpp Executable file → Normal file
View File

0
src/storage/backup/ob_backup_data_store.cpp Executable file → Normal file
View File

0
src/storage/backup/ob_backup_data_store.h Executable file → Normal file
View File

0
src/storage/backup/ob_backup_data_struct.cpp Executable file → Normal file
View File

0
src/storage/backup/ob_backup_data_struct.h Executable file → Normal file
View File

0
src/storage/backup/ob_backup_operator.cpp Executable file → Normal file
View File

0
src/storage/backup/ob_backup_task.cpp Executable file → Normal file
View File

0
src/storage/backup/ob_backup_utils.cpp Executable file → Normal file
View File

0
src/storage/backup/ob_backup_utils.h Executable file → Normal file
View File

0
src/storage/compaction/ob_compaction_diagnose.cpp Executable file → Normal file
View File

0
src/storage/compaction/ob_compaction_diagnose.h Executable file → Normal file
View File

0
src/storage/compaction/ob_medium_compaction_info.h Executable file → Normal file
View File

0
src/storage/compaction/ob_partition_merge_policy.cpp Executable file → Normal file
View File

0
src/storage/compaction/ob_partition_merge_progress.h Executable file → Normal file
View File

0
src/storage/compaction/ob_sstable_merge_info_mgr.cpp Executable file → Normal file
View File

0
src/storage/compaction/ob_tablet_merge_ctx.cpp Executable file → Normal file
View File

0
src/storage/compaction/ob_tablet_merge_ctx.h Executable file → Normal file
View File

0
src/storage/compaction/ob_tablet_merge_task.cpp Executable file → Normal file
View File

0
src/storage/compaction/ob_tenant_tablet_scheduler.h Executable file → Normal file
View File

0
src/storage/ddl/ob_complement_data_task.cpp Executable file → Normal file
View File

0
src/storage/ddl/ob_ddl_merge_task.cpp Executable file → Normal file
View File

0
src/storage/ddl/ob_ddl_merge_task.h Executable file → Normal file
View File

0
src/storage/ddl/ob_ddl_redo_log_replayer.cpp Executable file → Normal file
View File

0
src/storage/ddl/ob_ddl_redo_log_writer.cpp Executable file → Normal file
View File

0
src/storage/ddl/ob_ddl_replay_executor.cpp Executable file → Normal file
View File

0
src/storage/ddl/ob_direct_insert_sstable_ctx.cpp Executable file → Normal file
View File

0
src/storage/ddl/ob_tablet_ddl_kv.cpp Executable file → Normal file
View File

View File

0
src/storage/direct_load/ob_direct_load_origin_table.h Executable file → Normal file
View File

View File

View File

0
src/storage/high_availability/ob_storage_ha_dag.cpp Executable file → Normal file
View File

View File

View File

0
src/storage/ls/ob_ls.cpp Executable file → Normal file
View File

0
src/storage/ls/ob_ls.h Executable file → Normal file
View File

0
src/storage/ls/ob_ls_get_mod.h Executable file → Normal file
View File

0
src/storage/ls/ob_ls_tablet_service.cpp Executable file → Normal file
View File

0
src/storage/ls/ob_ls_tablet_service.h Executable file → Normal file
View File

0
src/storage/memtable/mvcc/ob_mvcc_acc_ctx.h Executable file → Normal file
View File

0
src/storage/memtable/mvcc/ob_mvcc_iterator.cpp Executable file → Normal file
View File

0
src/storage/memtable/ob_memtable.cpp Executable file → Normal file
View File

0
src/storage/memtable/ob_memtable_iterator.cpp Executable file → Normal file
View File

0
src/storage/tablelock/ob_mem_ctx_table_lock.cpp Executable file → Normal file
View File

0
src/storage/tablelock/ob_table_lock_common.h Executable file → Normal file
View File

0
src/storage/tablelock/ob_table_lock_rpc_struct.cpp Executable file → Normal file
View File

0
src/storage/tablelock/ob_table_lock_rpc_struct.h Executable file → Normal file
View File

0
src/storage/tablelock/ob_table_lock_service.cpp Executable file → Normal file
View File

0
src/storage/tablelock/ob_table_lock_service.h Executable file → Normal file
View File

View File

@ -233,7 +233,7 @@ ObTablet::ObTablet()
table_store_cache_()
{
#if defined(__x86_64__) && !defined(ENABLE_OBJ_LEAK_CHECK)
static_assert(sizeof(ObTablet) + sizeof(ObRowkeyReadInfo) <= 1672, "The size of ObTablet will affect the meta memory manager, and the necessity of adding new fields needs to be considered.");
static_assert(sizeof(ObTablet) + sizeof(ObRowkeyReadInfo) == 1616, "The size of ObTablet will affect the meta memory manager, and the necessity of adding new fields needs to be considered.");
#endif
MEMSET(memtables_, 0x0, sizeof(memtables_));
}

View File

@ -795,7 +795,7 @@ private:
int32_t version_;
int32_t length_;
volatile int64_t wash_score_;
ObTabletMdsData mds_data_; // size: 440B, alignment: 8B
ObTabletMdsData mds_data_; // size: 384B, alignment: 8B
volatile int64_t ref_cnt_;
ObTabletHandle next_tablet_guard_; // size: 56B, alignment: 8B
ObTabletMeta tablet_meta_; // size: 248, alignment: 8B

0
src/storage/tx/ob_dup_table_base.cpp Executable file → Normal file
View File

0
src/storage/tx/ob_dup_table_util.cpp Executable file → Normal file
View File

0
src/storage/tx/ob_trans_define.cpp Executable file → Normal file
View File

0
src/storage/tx/ob_trans_part_ctx.cpp Executable file → Normal file
View File

0
src/storage/tx/ob_trans_service.cpp Executable file → Normal file
View File

0
src/storage/tx/ob_trans_service_v4.cpp Executable file → Normal file
View File

0
src/storage/tx/ob_tx_log.h Executable file → Normal file
View File

0
src/storage/tx/ob_tx_replay_executor.cpp Executable file → Normal file
View File

0
src/storage/tx_storage/ob_access_service.cpp Executable file → Normal file
View File

0
src/storage/tx_storage/ob_tablet_gc_service.cpp Executable file → Normal file
View File

0
src/storage/tx_storage/ob_tablet_gc_service.h Executable file → Normal file
View File

0
src/storage/tx_table/ob_tx_data_table.cpp Executable file → Normal file
View File

0
src/storage/tx_table/ob_tx_data_table.h Executable file → Normal file
View File

0
src/storage/tx_table/ob_tx_table.cpp Executable file → Normal file
View File