Parcourir la source

[2834] added a simple getter for cache conf to DataSourceInfo.

JINMEI Tatuya il y a 12 ans
Parent
commit
4a27055866
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      src/lib/datasrc/client_list.h

+ 4 - 0
src/lib/datasrc/client_list.h

@@ -418,6 +418,10 @@ public:
         boost::shared_ptr<memory::InMemoryClient> cache_;
         boost::shared_ptr<memory::ZoneTableSegment> ztable_segment_;
         std::string name_;
+
+        const internal::CacheConfig* getCacheConfig() const {
+	    return (cache_conf_.get());
+	}
     private:
         // this is kept private for now.  When it needs to be accessed,
         // we'll add a read-only getter method.