BIND 10 trac2853, updated. bd74cbbdfc7828d5517089d1c9d4f2768b7bc7de [2853] Update constructor documentation
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Jun 13 08:15:36 UTC 2013
The branch, trac2853 has been updated
via bd74cbbdfc7828d5517089d1c9d4f2768b7bc7de (commit)
via 7448e48ddae3c48408bc95457e21d0ca189a9ea2 (commit)
from c8050a3b7d7e3060c59f14c777af5a8ad675f234 (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 bd74cbbdfc7828d5517089d1c9d4f2768b7bc7de
Author: Mukund Sivaraman <muks at isc.org>
Date: Thu Jun 13 13:41:01 2013 +0530
[2853] Update constructor documentation
commit 7448e48ddae3c48408bc95457e21d0ca189a9ea2
Author: Mukund Sivaraman <muks at isc.org>
Date: Thu Jun 13 13:40:44 2013 +0530
[2853] Fix unittest for the new DataSourceStatus constructor
-----------------------------------------------------------------------
Summary of changes:
src/lib/datasrc/client_list.h | 7 ++++---
src/lib/datasrc/tests/client_list_unittest.cc | 2 +-
2 files changed, 5 insertions(+), 4 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/client_list.h b/src/lib/datasrc/client_list.h
index 6fd4bb3..2880e56 100644
--- a/src/lib/datasrc/client_list.h
+++ b/src/lib/datasrc/client_list.h
@@ -81,7 +81,8 @@ class DataSourceStatus {
public:
/// \brief Constructor
///
- /// Sets initial values.
+ /// Sets initial values. If you want to use \c SEGMENT_UNUSED as the
+ /// state, please use the other constructor.
DataSourceStatus(const std::string& name, MemorySegmentState state,
const std::string& type) :
name_(name),
@@ -94,8 +95,8 @@ public:
/// \brief Constructor
///
- /// Sets initial values. The state is set as SEGMENT_UNUSED and the
- /// type is effectively unspecified.
+ /// Sets initial values. The state is set as \c SEGMENT_UNUSED and
+ /// the type is effectively unspecified.
DataSourceStatus(const std::string& name) :
name_(name),
type_(""),
diff --git a/src/lib/datasrc/tests/client_list_unittest.cc b/src/lib/datasrc/tests/client_list_unittest.cc
index 815e953..acffd23 100644
--- a/src/lib/datasrc/tests/client_list_unittest.cc
+++ b/src/lib/datasrc/tests/client_list_unittest.cc
@@ -1357,7 +1357,7 @@ TEST(DataSourceStatus, status) {
EXPECT_EQ("Test", status.getName());
EXPECT_EQ(SEGMENT_INUSE, status.getSegmentState());
EXPECT_EQ("local", status.getSegmentType());
- const DataSourceStatus status_unused("Unused", SEGMENT_UNUSED, "");
+ const DataSourceStatus status_unused("Unused");
EXPECT_EQ("Unused", status_unused.getName());
EXPECT_EQ(SEGMENT_UNUSED, status_unused.getSegmentState());
EXPECT_THROW(status_unused.getSegmentType(), isc::InvalidOperation);
More information about the bind10-changes
mailing list