Browse Source

[2850] Remove unnecessary setup of named addresses

... now that we handle this with an offset_ptr inside setNamedAddress()
itself.
Mukund Sivaraman 12 years ago
parent
commit
211389e129
1 changed files with 0 additions and 9 deletions
  1. 0 9
      src/lib/datasrc/memory/zone_table_segment_mapped.cc

+ 0 - 9
src/lib/datasrc/memory/zone_table_segment_mapped.cc

@@ -81,11 +81,6 @@ ZoneTableSegmentMapped::processChecksum(MemorySegmentMapped& segment,
         }
         }
     } else {
     } else {
         // Allocate space for a checksum (which is saved during close).
         // 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;
         void* checksum = NULL;
         while (!checksum) {
         while (!checksum) {
             try {
             try {
@@ -120,10 +115,6 @@ ZoneTableSegmentMapped::processHeader(MemorySegmentMapped& segment,
             assert(result.second);
             assert(result.second);
         }
         }
     } else {
     } 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;
         void* ptr = NULL;
         while (!ptr) {
         while (!ptr) {
             try {
             try {