Skip to content

Commit

Permalink
Merge pull request #324 from chejinge/fix_lock_and_multi_caches
Browse files Browse the repository at this point in the history
fix:lock and multi caches
  • Loading branch information
AlexStocks authored Nov 23, 2023
2 parents a0618c5 + 7993074 commit c38a740
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 184 deletions.
2 changes: 0 additions & 2 deletions include/pika_cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ class PikaCache : public pstd::noncopyable, public std::enable_shared_from_this<

private:
std::atomic<int> cache_status_;
std::unique_ptr<cache::RedisCache> cache_;
uint32_t cache_num_ = 0;

// currently only take effects to zset
Expand All @@ -220,7 +219,6 @@ class PikaCache : public pstd::noncopyable, public std::enable_shared_from_this<
std::shared_mutex rwlock_;
std::unique_ptr<PikaCacheLoadThread> cache_load_thread_;
std::shared_ptr<Slot> slot_;
// todo: smart point may be coredump as unbuntu and centos
std::vector<cache::RedisCache*> caches_;
std::vector<std::shared_ptr<pstd::Mutex>> cache_mutexs_;
};
Expand Down
Loading

0 comments on commit c38a740

Please sign in to comment.