BIND 10 trac2835, updated. d007842f66f874ad8ceacf664f8c0645d2ec4226 [2835] Make the DataSourceStatus read-only
BIND 10 source code commits
bind10-changes at lists.isc.org
Tue Mar 19 08:47:38 UTC 2013
The branch, trac2835 has been updated
via d007842f66f874ad8ceacf664f8c0645d2ec4226 (commit)
from d25f0e1e01a6cc3991ae63f0957c61ec171395ce (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 d007842f66f874ad8ceacf664f8c0645d2ec4226
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date: Tue Mar 19 09:45:17 2013 +0100
[2835] Make the DataSourceStatus read-only
Make the segmentState property of the DataSourceStatus immutable, making
the whole class read-only (except for assignment, which is needed for
putting it into a vector).
-----------------------------------------------------------------------
Summary of changes:
src/lib/datasrc/client_list.h | 4 ----
src/lib/datasrc/tests/client_list_unittest.cc | 2 --
2 files changed, 6 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/client_list.h b/src/lib/datasrc/client_list.h
index 4f74d32..d2eaf2a 100644
--- a/src/lib/datasrc/client_list.h
+++ b/src/lib/datasrc/client_list.h
@@ -76,10 +76,6 @@ public:
name_(name),
state_(state)
{}
- /// \brief Change the current segment state
- void setSegmentState(MemorySegmentState state) {
- state_ = state;
- }
/// \brief Get the current segment state
MemorySegmentState getSegmentState() const {
return (state_);
diff --git a/src/lib/datasrc/tests/client_list_unittest.cc b/src/lib/datasrc/tests/client_list_unittest.cc
index 99117a5..17c466c 100644
--- a/src/lib/datasrc/tests/client_list_unittest.cc
+++ b/src/lib/datasrc/tests/client_list_unittest.cc
@@ -1166,8 +1166,6 @@ TEST(DataSourceStatus, status) {
DataSourceStatus status("Test", MSS_UNUSED);
EXPECT_EQ("Test", status.getName());
EXPECT_EQ(MSS_UNUSED, status.getSegmentState());
- status.setSegmentState(MSS_LOCAL);
- EXPECT_EQ(MSS_LOCAL, status.getSegmentState());
}
}
More information about the bind10-changes
mailing list