]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2435] Describe that a reference to the updater is kept
authorMukund Sivaraman <muks@isc.org>
Wed, 9 Jan 2013 05:14:26 +0000 (10:44 +0530)
committerMukund Sivaraman <muks@isc.org>
Wed, 9 Jan 2013 05:14:26 +0000 (10:44 +0530)
src/lib/datasrc/rrset_collection.h

index df307c726f13a65bc323f1aedddb622439f3e0cd..4effd4fb48fbb02d2c9f8b7e4b6866208284fb9c 100644 (file)
@@ -26,6 +26,12 @@ namespace datasrc {
 class RRsetCollection : public isc::dns::RRsetCollectionBase {
 public:
     /// \brief Constructor.
+    ///
+    /// A reference to the \c updater (via \c shared_ptr) is taken when
+    /// the collection is constructed. As long as the collection object
+    /// is alive, the reference to the updater is kept and it cannot be
+    /// destroyed by the client.
+    ///
     /// \param updater The ZoneUpdater to wrap around.
     RRsetCollection(ZoneUpdaterPtr updater) :
         updater_(updater)