BIND 10 trac2831, updated. e9e336900ee014c251ad4b25a8e19d36da3a9a2e [2831] Add a comment and make a minor comment update
BIND 10 source code commits
bind10-changes at lists.isc.org
Mon Apr 8 15:06:17 UTC 2013
The branch, trac2831 has been updated
via e9e336900ee014c251ad4b25a8e19d36da3a9a2e (commit)
from 7ed3411dd5f0045b2eb877579a715de9892fc501 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit e9e336900ee014c251ad4b25a8e19d36da3a9a2e
Author: Mukund Sivaraman <muks at isc.org>
Date: Mon Apr 8 20:20:34 2013 +0530
[2831] Add a comment and make a minor comment update
-----------------------------------------------------------------------
Summary of changes:
src/lib/util/memory_segment_mapped.cc | 2 ++
.../util/tests/memory_segment_common_unittest.cc | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
-----------------------------------------------------------------------
diff --git a/src/lib/util/memory_segment_mapped.cc b/src/lib/util/memory_segment_mapped.cc
index f1bd9c1..6d0405c 100644
--- a/src/lib/util/memory_segment_mapped.cc
+++ b/src/lib/util/memory_segment_mapped.cc
@@ -227,7 +227,9 @@ MemorySegmentMapped::shrinkToFit() {
return;
}
+ // First, (unmap and) close the underlying file.
impl_->base_sgmt_.reset();
+
BaseSegment::shrink_to_fit(impl_->filename_.c_str());
try {
// Remap the grown file; this should succeed, but it's not 100%
diff --git a/src/lib/util/tests/memory_segment_common_unittest.cc b/src/lib/util/tests/memory_segment_common_unittest.cc
index 2ffdb7c..45bef7b 100644
--- a/src/lib/util/tests/memory_segment_common_unittest.cc
+++ b/src/lib/util/tests/memory_segment_common_unittest.cc
@@ -25,7 +25,7 @@ namespace test {
void
checkSegmentNamedAddress(MemorySegment& segment, bool out_of_segment_ok) {
- // If not exist, null pointer will be returned.
+ // If the name does not exist, NULL should be returned.
EXPECT_EQ(static_cast<void*>(0), segment.getNamedAddress("test address"));
// Now set it
More information about the bind10-changes
mailing list