BIND 10 master, updated. e14cc5ec115df8f053ee0b4324e9be9b73feebe5 [master] address SunStudio build failure

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Dec 14 10:51:46 UTC 2011


The branch, master has been updated
       via  e14cc5ec115df8f053ee0b4324e9be9b73feebe5 (commit)
      from  8cb640551a6fc4a101bdc4c6469630d0cbeb7076 (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 e14cc5ec115df8f053ee0b4324e9be9b73feebe5
Author: Yoshitaka Aharen <aharen at jprs.co.jp>
Date:   Wed Dec 14 19:51:06 2011 +0900

    [master] address SunStudio build failure

-----------------------------------------------------------------------

Summary of changes:
 src/lib/statistics/counter_dict.cc |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/statistics/counter_dict.cc b/src/lib/statistics/counter_dict.cc
index 08302be..da6aace 100644
--- a/src/lib/statistics/counter_dict.cc
+++ b/src/lib/statistics/counter_dict.cc
@@ -75,9 +75,11 @@ CounterDictionaryImpl::deleteElement(const std::string& name) {
 
 Counter&
 CounterDictionaryImpl::getElement(const std::string& name) {
-    try {
-        return (*(dictionary_.at(name)));
-    } catch (const std::out_of_range&) {
+    DictionaryMap::const_iterator i = dictionary_.find(name);
+    if (i != dictionary_.end()) {
+        // the key was found. return the element.
+        return (*(i->second));
+    } else {
         // If an element with specified name does not exist, throw
         // isc::OutOfRange.
         isc_throw(isc::OutOfRange, "Element " << name << " does not exist");




More information about the bind10-changes mailing list