fix plan core whiling concurrently deleting plan

This commit is contained in:
obdev
2023-02-08 11:56:31 +08:00
committed by ob-robot
parent 2467fc57a7
commit e05475cdbc
3 changed files with 20 additions and 3 deletions

View File

@ -154,7 +154,7 @@ public:
int unlock() { return rwlock_.unlock(); }
int64_t inc_ref_count(const CacheRefHandleID ref_handle);
int64_t dec_ref_count(const CacheRefHandleID ref_handle);
int64_t get_ref_count() const { return ref_count_; }
int64_t get_ref_count() const { return ATOMIC_LOAD(&ref_count_); }
common::ObIAllocator *get_allocator() { return &allocator_; }
common::ObIAllocator &get_allocator_ref() { return allocator_; }
lib::MemoryContext &get_mem_context() { return mem_context_; }