Browse Source

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

JINMEI Tatuya 12 years ago
parent
commit
4a27055866
1 changed files with 4 additions and 0 deletions
  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.