]> granicus.if.org Git - pdns/commitdiff
clarifying comment
authorbert hubert <bert.hubert@netherlabs.nl>
Wed, 20 Jan 2016 14:49:37 +0000 (15:49 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Wed, 20 Jan 2016 20:51:37 +0000 (21:51 +0100)
pdns/cachecleaner.hh

index 0cb1cfcbe0aa8ad5eacfee8f7727b272c8bc5e27..dad2ebfdf9e001b1d12d2a7eb86bf79f2eac3cbc 100644 (file)
@@ -58,7 +58,7 @@ template <typename T> void pruneCollection(T& collection, unsigned int maxCached
   sidx.erase(iter, eiter);      // just lob it off from the beginning
 }
 
-
+// note: this expects iterator from first index, and sequence MUST be second index!
 template <typename T> void moveCacheItemToFrontOrBack(T& collection, typename T::iterator& iter, bool front)
 {
   typedef typename T::template nth_index<1>::type sequence_t;