BIND 10 trac598, updated. ebc01eeac4a9ab34ef73e984a3d16e9c59ccd42b [trac598] Rename class name 'UpstreamQuery' to 'ForwardQuery'

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Apr 13 10:52:45 UTC 2011


The branch, trac598 has been updated
       via  ebc01eeac4a9ab34ef73e984a3d16e9c59ccd42b (commit)
      from  0194cb0aaf6c8137e0699b8166c746a0c8a6302c (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 ebc01eeac4a9ab34ef73e984a3d16e9c59ccd42b
Author: zhanglikun <zhanglikun at cnnic.cn>
Date:   Wed Apr 13 18:52:33 2011 +0800

    [trac598] Rename class name 'UpstreamQuery' to 'ForwardQuery'

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

Summary of changes:
 src/lib/asiolink/recursive_query.cc |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/asiolink/recursive_query.cc b/src/lib/asiolink/recursive_query.cc
index 8de3dc0..3ec05dd 100644
--- a/src/lib/asiolink/recursive_query.cc
+++ b/src/lib/asiolink/recursive_query.cc
@@ -454,7 +454,7 @@ public:
     }
 };
 
-class UpstreamQuery : public IOFetch::Callback {
+class ForwardQuery : public IOFetch::Callback {
 private:
     // The io service to handle async calls
     IOService& io_;
@@ -510,7 +510,7 @@ private:
     }
 
 public:
-    UpstreamQuery(IOService& io,
+    ForwardQuery(IOService& io,
         ConstMessagePtr query_message,
         MessagePtr answer_message,
         boost::shared_ptr<AddressVector> upstream,
@@ -532,14 +532,14 @@ public:
         if (lookup_timeout >= 0) {
             lookup_timer.expires_from_now(
                 boost::posix_time::milliseconds(lookup_timeout));
-            lookup_timer.async_wait(boost::bind(&UpstreamQuery::stop, this, false));
+            lookup_timer.async_wait(boost::bind(&ForwardQuery::stop, this, false));
         }
 
         // Setup the timer to send an answer (client_timeout)
         if (client_timeout >= 0) {
             client_timer.expires_from_now(
                 boost::posix_time::milliseconds(client_timeout));
-            client_timer.async_wait(boost::bind(&UpstreamQuery::clientTimeout, this));
+            client_timer.async_wait(boost::bind(&ForwardQuery::clientTimeout, this));
         }
 
         send();
@@ -690,7 +690,7 @@ RecursiveQuery::forward(ConstMessagePtr query_message,
     // everything throught without interpretation, except
     // QID, port number. The response will not be cached.
     // It will delete itself when it is done
-    new UpstreamQuery(io, query_message, answer_message,
+    new ForwardQuery(io, query_message, answer_message,
                       upstream_, buffer, crs, query_timeout_,
                       client_timeout_, lookup_timeout_);
 }




More information about the bind10-changes mailing list