Browse Source

[2831] minor editorial fixes: corrected a typo; folded a long line.

JINMEI Tatuya 12 years ago
parent
commit
8ddec7d125
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/lib/util/memory_segment_mapped.cc

+ 3 - 2
src/lib/util/memory_segment_mapped.cc

@@ -232,7 +232,7 @@ MemorySegmentMapped::shrinkToFit() {
 
 
     BaseSegment::shrink_to_fit(impl_->filename_.c_str());
     BaseSegment::shrink_to_fit(impl_->filename_.c_str());
     try {
     try {
-        // Remap the grown file; this should succeed, but it's not 100%
+        // Remap the shrunk file; this should succeed, but it's not 100%
         // guaranteed.  If it fails we treat it as if we fail to create
         // guaranteed.  If it fails we treat it as if we fail to create
         // the new segment.
         // the new segment.
         impl_->base_sgmt_.reset(
         impl_->base_sgmt_.reset(
@@ -250,7 +250,8 @@ MemorySegmentMapped::getSize() const {
 
 
 size_t
 size_t
 MemorySegmentMapped::getCheckSum() const {
 MemorySegmentMapped::getCheckSum() const {
-    const size_t pagesize = boost::interprocess::mapped_region::get_page_size();
+    const size_t pagesize =
+        boost::interprocess::mapped_region::get_page_size();
     const uint8_t* const cp_begin = static_cast<const uint8_t*>(
     const uint8_t* const cp_begin = static_cast<const uint8_t*>(
         impl_->base_sgmt_->get_address());
         impl_->base_sgmt_->get_address());
     const uint8_t* const cp_end = cp_begin + impl_->base_sgmt_->get_size();
     const uint8_t* const cp_end = cp_begin + impl_->base_sgmt_->get_size();