]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2850] Remove unnecessary setup of named addresses
authorMukund Sivaraman <muks@isc.org>
Mon, 13 May 2013 10:42:13 +0000 (16:12 +0530)
committerMukund Sivaraman <muks@isc.org>
Mon, 13 May 2013 10:42:18 +0000 (16:12 +0530)
... now that we handle this with an offset_ptr inside setNamedAddress()
itself.

src/lib/datasrc/memory/zone_table_segment_mapped.cc

index f199e3d7438ae1f5ccb8ab03373195aaadf14ba1..45bd8801831bbd64f6db164f3cb4edc4a4516cd7 100644 (file)
@@ -81,11 +81,6 @@ ZoneTableSegmentMapped::processChecksum(MemorySegmentMapped& segment,
         }
     } else {
         // Allocate space for a checksum (which is saved during close).
-
-        // First allocate a ZONE_TABLE_CHECKSUM_NAME, so that we can set
-        // it without growing the segment (and changing the checksum's
-        // address).
-        segment.setNamedAddress(ZONE_TABLE_CHECKSUM_NAME, NULL);
         void* checksum = NULL;
         while (!checksum) {
             try {
@@ -120,10 +115,6 @@ ZoneTableSegmentMapped::processHeader(MemorySegmentMapped& segment,
             assert(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) {
             try {