From: Michal 'vorner' Vaner Date: Fri, 7 Dec 2012 13:00:49 +0000 (+0100) Subject: [2378] Note about late detection of end X-Git-Tag: bind10-1.0.0-beta-release~28^2~2^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=af1da46eef54e96be6765922f42a786b84db2014;p=thirdparty%2Fkea.git [2378] Note about late detection of end --- diff --git a/src/lib/datasrc/zone_loader.h b/src/lib/datasrc/zone_loader.h index 37bc14a566..294611611b 100644 --- a/src/lib/datasrc/zone_loader.h +++ b/src/lib/datasrc/zone_loader.h @@ -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.