Fix mb handle not rollback
This commit is contained in:
@ -13,9 +13,9 @@
|
||||
#ifndef OCEANBASE_OBSERVER_VIRTUAL_TABLE_OB_DISK_STAT_TABLE_
|
||||
#define OCEANBASE_OBSERVER_VIRTUAL_TABLE_OB_DISK_STAT_TABLE_
|
||||
|
||||
#include "share/ob_virtual_table_scanner_iterator.h"
|
||||
|
||||
|
||||
#include "share/ob_virtual_table_scanner_iterator.h"
|
||||
|
||||
|
||||
namespace oceanbase
|
||||
{
|
||||
namespace common
|
||||
@ -39,9 +39,9 @@ public:
|
||||
private:
|
||||
enum DISK_COLUMN
|
||||
{
|
||||
SVR_IP = common::OB_APP_MIN_COLUMN_ID,
|
||||
SVR_PORT,
|
||||
TOTAL_SIZE,
|
||||
SVR_IP = common::OB_APP_MIN_COLUMN_ID,
|
||||
SVR_PORT,
|
||||
TOTAL_SIZE,
|
||||
USED_SIZE,
|
||||
FREE_SIZE,
|
||||
IS_DISK_VALID,
|
||||
@ -50,9 +50,9 @@ private:
|
||||
};
|
||||
common::ObAddr *addr_;
|
||||
common::ObString ipstr_;
|
||||
int32_t port_;
|
||||
bool is_end_;
|
||||
DISALLOW_COPY_AND_ASSIGN(ObInfoSchemaDiskStatTable);
|
||||
int32_t port_;
|
||||
bool is_end_;
|
||||
DISALLOW_COPY_AND_ASSIGN(ObInfoSchemaDiskStatTable);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@ -1140,6 +1140,10 @@ int ObTmpTenantMemBlockManager::wash_block(ObTmpMacroBlock *wash_block, bool &is
|
||||
STORAGE_LOG(INFO, "succeed to wash a block", K(*wash_block));
|
||||
}
|
||||
}
|
||||
|
||||
if (OB_FAIL(ret)) {
|
||||
mb_handle.reset();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
STORAGE_LOG(INFO, "this block has some the unclosed extent", K(*wash_block));
|
||||
|
||||
Reference in New Issue
Block a user