This commit is contained in:
z404289981
2024-03-27 03:46:00 +00:00
committed by ob-robot
parent 99861a01cc
commit 47b3194408
2 changed files with 2 additions and 1 deletions

View File

@ -1504,7 +1504,7 @@ int ObMultipleMerge::set_base_version() const {
int ret = OB_SUCCESS; int ret = OB_SUCCESS;
// When the major table is currently being processed, the snapshot version is taken and placed // When the major table is currently being processed, the snapshot version is taken and placed
// in the current context for base version to filter unnecessary rows in the mini or minor sstable // in the current context for base version to filter unnecessary rows in the mini or minor sstable
if (OB_LIKELY(tables_.count() > 0)) { if (is_scan() && tables_.count() > 0) {
ObITable *table = nullptr; ObITable *table = nullptr;
if (OB_FAIL(tables_.at(0, table))) { if (OB_FAIL(tables_.at(0, table))) {
STORAGE_LOG(WARN, "Fail to get the first store", K(ret)); STORAGE_LOG(WARN, "Fail to get the first store", K(ret));

View File

@ -200,6 +200,7 @@ public:
VIRTUAL_TO_STRING_KV(K_(type)); VIRTUAL_TO_STRING_KV(K_(type));
public: public:
ObQRIterType get_type() const { return type_; } ObQRIterType get_type() const { return type_; }
bool is_scan() const { return type_ == T_SINGLE_SCAN || type_ == T_MULTI_SCAN; }
protected: protected:
ObQRIterType type_; ObQRIterType type_;