placeholder for autosplit

This commit is contained in:
Hongqin-Li 2024-09-24 11:31:58 +00:00 committed by ob-robot
parent 11f6f9565c
commit 6434e21d37
2 changed files with 5 additions and 1 deletions

View File

@ -43,7 +43,8 @@ enum class ObFreezeSourceFlag : int64_t
DIRECT_INC_FREEZE = 11,
GC_RETAIN_CTX = 12, // deprecated
TEST_MODE = 13, // used for test only
MAX_SOURCE = 14,
TABLET_SPLIT = 14,
MAX_SOURCE = 15,
};
inline bool is_valid_freeze_source(const ObFreezeSourceFlag source)

View File

@ -183,6 +183,7 @@ enum ObTableLockOpType : char
OUT_TRANS_LOCK = 2, // will be unlock use OUT_TRANS_UNLOCK
OUT_TRANS_UNLOCK = 3,
IN_TRANS_COMMON_LOCK = 4,
TABLET_SPLIT = 5,
MAX_VALID_LOCK_OP_TYPE,
};
@ -202,6 +203,8 @@ int lock_op_type_to_string(const ObTableLockOpType op_type,
strncpy(str ,"OUT_TRANS_UNLOCK", str_len);
} else if (IN_TRANS_COMMON_LOCK == op_type) {
strncpy(str ,"IN_TRANS_COMMON_LOCK", str_len);
} else if (TABLET_SPLIT == op_type) {
strncpy(str ,"TABLET_SPLIT", str_len);
} else {
ret = OB_INVALID_ARGUMENT;
}