[FEAT MERGE] log4100 branch
Co-authored-by: tino247 <tino247@126.com> Co-authored-by: BinChenn <binchenn.bc@gmail.com> Co-authored-by: HaHaJeff <jeffzhouhhh@gmail.com>
This commit is contained in:
@ -24,7 +24,7 @@ using namespace share;
|
||||
/**
|
||||
* ------------------------------ObArchiveRoundState---------------------
|
||||
*/
|
||||
const char *OB_ARCHIVE_ROUND_STATE_STR[] = {"INVALID", "PREPARE", "BEGINNING", "DOING", "INTERRUPTED", "STOPPING", "STOP", "MAX_STATUS"};
|
||||
const char *OB_ARCHIVE_ROUND_STATE_STR[] = {"INVALID", "PREPARE", "BEGINNING", "DOING", "INTERRUPTED", "STOPPING", "STOP", "SUSPENDING", "SUSPEND", "MAX_STATUS"};
|
||||
|
||||
bool ObArchiveRoundState::is_valid() const
|
||||
{
|
||||
@ -1110,3 +1110,35 @@ int ObDestRoundSummary::add_ls_dest_round_summary(const ObLSDestRoundSummary &de
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* ------------------------------ObArchiveLSMetaType---------------------
|
||||
*/
|
||||
bool ObArchiveLSMetaType::is_valid() const
|
||||
{
|
||||
return type_ > Type::INVALID_TYPE && type_ < Type::MAX_TYPE;
|
||||
}
|
||||
|
||||
int ObArchiveLSMetaType::compare(const ObArchiveLSMetaType &other) const
|
||||
{
|
||||
int ret = 0;
|
||||
if (type_ == other.type_) {
|
||||
ret = 0;
|
||||
} else if (type_ > other.type_) {
|
||||
ret = 1;
|
||||
} else {
|
||||
ret = -1;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
const char *ObArchiveLSMetaType::get_type_str() const
|
||||
{
|
||||
#define CHECK_TYPE_STR(x) case(Type::x): return #x
|
||||
switch (type_) {
|
||||
CHECK_TYPE_STR(SCHEMA_META);
|
||||
default:
|
||||
return "Invalid";
|
||||
};
|
||||
#undef CHECK_TYPE_STR
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user