Parcourir la source

[2435] Explain why using the rrset collection is not allowed after calling ZoneUpdater::commit()

Mukund Sivaraman il y a 12 ans
Parent
commit
631366a33b
1 fichiers modifiés avec 5 ajouts et 3 suppressions
  1. 5 3
      src/lib/datasrc/zone.h

+ 5 - 3
src/lib/datasrc/zone.h

@@ -825,9 +825,11 @@ public:
     /// because iterating the collection may result in unexpected
     /// behavior if the underlying data is updated.  Implementations of
     /// \c ZoneUpdater may disable a previously returned
-    /// \c RRsetCollection after \c commit() is called. If an
-    /// \c RRsetCollection is disabled, using methods such as \c find() and
-    /// using its iterator would cause an exception to be thrown. See
+    /// \c RRsetCollection after \c commit() is called. Even in this
+    /// case, using existing iterators may result in unexpected behavior
+    /// after \c commit() is called. If an \c RRsetCollection is
+    /// disabled, using methods such as \c find() and using its iterator
+    /// would cause an exception to be thrown. See
     /// \c isc::datasrc::RRsetCollectionBase for details.
     virtual isc::datasrc::RRsetCollectionBase& getRRsetCollection() = 0;