[BUG.FIX] fix whitescan issues
This commit is contained in:
parent
665e7984d5
commit
a09570cef7
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user