From: Mukund Sivaraman Date: Mon, 13 May 2013 10:42:13 +0000 (+0530) Subject: [2850] Remove unnecessary setup of named addresses X-Git-Tag: bind10-1.2.0beta1-release~467^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=211389e129c7c27129fda481deda0dd649630a98;p=thirdparty%2Fkea.git [2850] Remove unnecessary setup of named addresses ... now that we handle this with an offset_ptr inside setNamedAddress() itself. --- diff --git a/src/lib/datasrc/memory/zone_table_segment_mapped.cc b/src/lib/datasrc/memory/zone_table_segment_mapped.cc index f199e3d743..45bd880183 100644 --- a/src/lib/datasrc/memory/zone_table_segment_mapped.cc +++ b/src/lib/datasrc/memory/zone_table_segment_mapped.cc @@ -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 {