Browse Source

[master] Merge branch 'master' of ssh://git.bind10.isc.org/var/bind10/git/bind10

JINMEI Tatuya 12 years ago
parent
commit
214b2747a3

+ 1 - 1
src/bin/resolver/bench/fake_resolution.cc

@@ -144,7 +144,7 @@ public:
         timer_(timer)
         timer_(timer)
     {}
     {}
     void trigger() {
     void trigger() {
-        query_->outstanding_ = false;
+        query_->answerReceived();
         callback_();
         callback_();
         // We are not needed any more.
         // We are not needed any more.
         delete this;
         delete this;

+ 7 - 0
src/bin/resolver/bench/fake_resolution.h

@@ -142,6 +142,13 @@ public:
         }
         }
         interface_ = &dst_interface;
         interface_ = &dst_interface;
     }
     }
+    /// \brief The answer for upstream query was received
+    ///
+    /// This should be called from within the FakeInterface only.
+    /// It marks that the query from upstream was answered.
+    void answerReceived() {
+        outstanding_ = false;
+    }
 private:
 private:
     // The scheduled steps for this task.
     // The scheduled steps for this task.
     typedef std::pair<Task, size_t> Step;
     typedef std::pair<Task, size_t> Step;