[BUG.FIX] fix whitescan issues

This commit is contained in:
Tyshawn 2023-02-06 13:13:27 +08:00 committed by ob-robot
parent 665e7984d5
commit a09570cef7
2 changed files with 7 additions and 2 deletions

View File

@ -1659,6 +1659,12 @@ int ObTmpFileStore::get_store(const uint64_t tenant_id, ObTmpTenantFileStoreHand
}
}
}
if (OB_SUCC(ret)) {
if (OB_UNLIKELY(!handle.is_valid())) {
ret = OB_ERR_UNEXPECTED;
STORAGE_LOG(WARN, "unexpected error, invalid tenant file store handle", K(ret), K(handle));
}
}
return ret;
}

View File

@ -297,11 +297,10 @@ public:
bool is_valid() const;
void reset();
OB_INLINE ObTmpTenantFileStore* get_tenant_store() const { return tenant_store_; }
TO_STRING_KV(KP_(tenant_store), KP_(allocator));
private:
ObTmpTenantFileStore *tenant_store_;
common::ObConcurrentFIFOAllocator *allocator_;
};
class ObTmpFileStore final