Browse Source

[2850] Update comment about not verifying checksum for a read-only segment

Mukund Sivaraman 12 years ago
parent
commit
0b7af64f6b
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/lib/datasrc/memory/zone_table_segment_mapped.cc

+ 4 - 4
src/lib/datasrc/memory/zone_table_segment_mapped.cc

@@ -167,10 +167,10 @@ ZoneTableSegmentMapped::reset(MemorySegmentOpenMode mode,
                       "There is no previously saved checksum in a "
                       "mapped segment opened in read-only mode.");
         }
-        // The segment was already shrunk when it was last closed. Check
-        // that its checksum is consistent.
-        // FIXME: We can't really do this as we can't set the checksum
-        // to 0 for checksum calculation in a read-only segment.
+
+        // We can't verify the checksum here as we can't set the
+        // checksum to 0 for checksum calculation in a read-only
+        // segment. So we continue without verifying the checksum.
 
         // There must be a previously saved ZoneTableHeader.
         result = segment->getNamedAddress("zone_table_header");