ignore old ddl commit clog

This commit is contained in:
simonjoylet
2023-02-06 22:55:02 +08:00
committed by ob-robot
parent ce81c50258
commit 550fd8e950
2 changed files with 4 additions and 1 deletions

View File

@ -27,7 +27,7 @@ enum class ObDDLClogType : int64_t
{
UNKNOWN = -1,
DDL_REDO_LOG = 0x1,
// DDL_COMMIT_LOG = 0x2, // deprecated
OLD_DDL_COMMIT_LOG = 0x2, // deprecated, only compatable use
DDL_TABLET_SCHEMA_VERSION_CHANGE_LOG = 0x10,
DDL_START_LOG = 0x20,
DDL_COMMIT_LOG = 0x40,// rename from DDL_PREPARE_LOG

View File

@ -159,6 +159,9 @@ int ObLSDDLLogHandler::replay(const void *buffer,
ret = replay_ddl_redo_log_(log_buf, buf_size, tmp_pos, log_scn);
break;
}
case ObDDLClogType::OLD_DDL_COMMIT_LOG: {
break; // ignore the old ddl commit log
}
case ObDDLClogType::DDL_COMMIT_LOG: {
ret = replay_ddl_commit_log_(log_buf, buf_size, tmp_pos, log_scn);
break;