]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2378] Note about late detection of end
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Fri, 7 Dec 2012 13:00:49 +0000 (14:00 +0100)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Thu, 13 Dec 2012 10:33:57 +0000 (11:33 +0100)
src/lib/datasrc/zone_loader.h

index 37bc14a5664ddf123b340012ba562608f3ab4f44..294611611b78d556476d321202b21a423dfd9657 100644 (file)
@@ -133,6 +133,11 @@ public:
     /// \throw DataSourceError in case some error (possibly low-level) happens.
     /// \throw MasterFileError when the master_file is badly formatted or some
     ///     similar problem is found when loading the master file.
+    /// \note If the limit is exactly the number of RRs available to be loaded,
+    ///     the method still returns false and true'll be returned on the next
+    ///     call (which will load 0 RRs). This is because the end of iterator or
+    ///     master file is detected when reading past the end, not when the last
+    ///     one is read.
     bool loadIncremental(size_t limit);
 private:
     /// \brief The iterator used as source of data in case of the copy mode.