]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2850] Add a comment
authorMukund Sivaraman <muks@isc.org>
Fri, 3 May 2013 13:14:25 +0000 (18:44 +0530)
committerMukund Sivaraman <muks@isc.org>
Fri, 3 May 2013 13:14:25 +0000 (18:44 +0530)
src/lib/datasrc/memory/zone_table_segment_mapped.cc

index c80879e2ed2cb9cb17ed5699ee60f5dd7b942ef3..39ef31ea42009b96efb0546d547eaaf4b8cd2a7e 100644 (file)
@@ -120,6 +120,9 @@ ZoneTableSegmentMapped::processHeader(MemorySegmentMapped& segment,
             header_ = static_cast<ZoneTableHeader*>(result.second);
         }
     } else {
+        // First allocate a ZONE_TABLE_HEADER_NAME, so that we can set
+        // it without growing the segment (and changing the header's
+        // address).
         segment.setNamedAddress(ZONE_TABLE_HEADER_NAME, NULL);
         void* ptr = NULL;
         while (!ptr) {