fix backup report -4002
This commit is contained in:
@ -658,9 +658,8 @@ int ObBackupTabletStat::mark_item_reused(const share::ObBackupDataType &backup_d
|
||||
ObMutexGuard guard(mutex_);
|
||||
ObBackupProviderItem item;
|
||||
ObBackupProviderItemType item_type = PROVIDER_ITEM_MACRO_ID;
|
||||
blocksstable::MacroBlockId fake_macro_id;
|
||||
ObBackupMacroBlockId macro_id;
|
||||
macro_id.macro_block_id_ = fake_macro_id;
|
||||
macro_id.macro_block_id_ = ObBackupProviderItem::get_fake_macro_id_();
|
||||
macro_id.logic_id_ = id_pair.logic_id_;
|
||||
if (IS_NOT_INIT) {
|
||||
ret = OB_NOT_INIT;
|
||||
@ -1324,7 +1323,7 @@ DEFINE_GET_SERIALIZE_SIZE(ObBackupProviderItem)
|
||||
return size;
|
||||
}
|
||||
|
||||
ObITable::TableKey ObBackupProviderItem::get_fake_table_key_() const
|
||||
ObITable::TableKey ObBackupProviderItem::get_fake_table_key_()
|
||||
{
|
||||
ObITable::TableKey table_key;
|
||||
table_key.tablet_id_ = ObTabletID(1);
|
||||
@ -1334,12 +1333,12 @@ ObITable::TableKey ObBackupProviderItem::get_fake_table_key_() const
|
||||
return table_key;
|
||||
}
|
||||
|
||||
ObLogicMacroBlockId ObBackupProviderItem::get_fake_logic_id_() const
|
||||
ObLogicMacroBlockId ObBackupProviderItem::get_fake_logic_id_()
|
||||
{
|
||||
return ObLogicMacroBlockId(0/*data_seq*/, 1/*logic_version*/, 1/*tablet_id*/);
|
||||
}
|
||||
|
||||
MacroBlockId ObBackupProviderItem::get_fake_macro_id_() const
|
||||
MacroBlockId ObBackupProviderItem::get_fake_macro_id_()
|
||||
{
|
||||
return MacroBlockId(4096/*first_id*/, 0/*second_id*/, 0/*third_id*/);
|
||||
}
|
||||
|
||||
@ -176,6 +176,7 @@ enum ObBackupProviderItemType {
|
||||
};
|
||||
|
||||
class ObBackupProviderItem {
|
||||
friend class ObBackupTabletStat;
|
||||
public:
|
||||
ObBackupProviderItem();
|
||||
virtual ~ObBackupProviderItem();
|
||||
@ -201,9 +202,9 @@ public:
|
||||
NEED_SERIALIZE_AND_DESERIALIZE;
|
||||
private:
|
||||
// for parallel external sort serialization restriction
|
||||
ObITable::TableKey get_fake_table_key_() const;
|
||||
blocksstable::ObLogicMacroBlockId get_fake_logic_id_() const;
|
||||
blocksstable::MacroBlockId get_fake_macro_id_() const;
|
||||
static ObITable::TableKey get_fake_table_key_();
|
||||
static blocksstable::ObLogicMacroBlockId get_fake_logic_id_();
|
||||
static blocksstable::MacroBlockId get_fake_macro_id_();
|
||||
|
||||
private:
|
||||
ObBackupProviderItemType item_type_;
|
||||
|
||||
Reference in New Issue
Block a user