]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2851] document update for getCachedZoneWriter() to match the latest behavior.
authorJINMEI Tatuya <jinmei@isc.org>
Fri, 3 May 2013 04:11:25 +0000 (21:11 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Sat, 4 May 2013 06:39:18 +0000 (23:39 -0700)
src/lib/datasrc/client_list.h

index 4e989f72f2d3584b839ef129e3f41654037b911f..0302f9534e8083f25cfd9cab3d5857d4d080ca67 100644 (file)
@@ -364,14 +364,14 @@ public:
     /// getCachedZoneWriter() method.
     typedef std::pair<CacheStatus, ZoneWriterPtr> ZoneWriterPair;
 
-    /// \brief Return a zone writer that can be used to reload a zone.
+    /// \brief Return a zone writer that can be used to (re)load a zone.
     ///
-    /// This looks up a cached copy of zone and returns the ZoneWriter
-    /// that can be used to reload the content of the zone. This can
-    /// be used instead of reload() -- reload() works synchronously, which
-    /// is not what is needed every time.
+    /// This method identifies the first data source in the list that should
+    /// serve the zone of the given name, and returns a ZoneWriter object
+    /// that can be used to load the content of the zone, in a specific way
+    /// for that data source.
     ///
-    /// \param zone The origin of the zone to reload.
+    /// \param zone The origin of the zone to load.
     /// \return The result has two parts. The first one is a status describing
     ///     if it worked or not (and in case it didn't, also why). If the
     ///     status is ZONE_SUCCESS, the second part contains a shared pointer
@@ -379,8 +379,6 @@ public:
     ///     NULL.
     /// \throw DataSourceError or anything else that the data source
     ///      containing the zone might throw is propagated.
-    /// \throw DataSourceError if something unexpected happens, like when
-    ///      the original data source no longer contains the cached zone.
     ZoneWriterPair getCachedZoneWriter(const dns::Name& zone);
 
     /// \brief Implementation of the ClientList::find.