Browse Source

[2209] Rename DataSourceInfo::segment_

To ztable_segment_. The previous could be misunderstood, we have other
segments too.
Michal 'vorner' Vaner 12 years ago
parent
commit
fb8ce6a031

+ 3 - 3
src/lib/datasrc/client_list.cc

@@ -50,7 +50,7 @@ ConfigurableClientList::DataSourceInfo::DataSourceInfo(
 {
     if (has_cache) {
         cache_.reset(new InMemoryClient(segment, rrclass));
-        segment_ = segment;
+        ztable_segment_ = segment;
     }
 }
 
@@ -61,7 +61,7 @@ ConfigurableClientList::DataSourceInfo::DataSourceInfo(
 {
     if (has_cache) {
         cache_.reset(new InMemoryClient(segment, rrclass));
-        segment_ = segment;
+        ztable_segment_ = segment;
     }
 }
 
@@ -448,7 +448,7 @@ ConfigurableClientList::getCachedZoneWriter(const Name& name) {
     }
     return (ZoneWriterPair(ZONE_SUCCESS,
                            ZoneWriterPtr(
-                               result.info->segment_->
+                               result.info->ztable_segment_->
                                getZoneWriter(load_action, name, rrclass_))));
 }
 

+ 1 - 1
src/lib/datasrc/client_list.h

@@ -353,7 +353,7 @@ public:
         // No other applications or tests may use it.
         const DataSourceClient* getCacheClient() const;
         boost::shared_ptr<memory::InMemoryClient> cache_;
-        boost::shared_ptr<memory::ZoneTableSegment> segment_;
+        boost::shared_ptr<memory::ZoneTableSegment> ztable_segment_;
     };
 
     /// \brief The collection of data sources.

+ 1 - 1
src/lib/datasrc/tests/client_list_unittest.cc

@@ -293,7 +293,7 @@ public:
         ConfigurableClientList::DataSourceInfo& dsrc_info =
                 list_->getDataSources()[index];
         dsrc_info.cache_ = cache;
-        dsrc_info.segment_ = ztable_segment_;
+        dsrc_info.ztable_segment_ = ztable_segment_;
     }
     // Check the positive result is as we expect it.
     void positiveResult(const ClientList::FindResult& result,