You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ok...@apache.org on 2019/01/29 07:55:25 UTC
[trafficserver] branch master updated: Avoid reschedule
HostDBContinuation::iterateEvent if there are no more buckets
This is an automated email from the ASF dual-hosted git repository.
oknet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 7e429ad Avoid reschedule HostDBContinuation::iterateEvent if there are no more buckets
7e429ad is described below
commit 7e429ad401fe96c3b2ad16d3e083ad39b50484c0
Author: Oknet Xu <xu...@skyguard.com.cn>
AuthorDate: Tue Jan 29 14:34:11 2019 +0800
Avoid reschedule HostDBContinuation::iterateEvent if there are no more buckets
---
iocore/hostdb/HostDB.cc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/iocore/hostdb/HostDB.cc b/iocore/hostdb/HostDB.cc
index b5f16be..8c5ac69 100644
--- a/iocore/hostdb/HostDB.cc
+++ b/iocore/hostdb/HostDB.cc
@@ -1567,6 +1567,9 @@ HostDBContinuation::iterateEvent(int event, Event *e)
}
}
current_iterate_pos++;
+ }
+
+ if (current_iterate_pos < hostDB.refcountcache->partition_count()) {
// And reschedule ourselves to pickup the next bucket after HOST_DB_RETRY_PERIOD.
Debug("hostdb", "iterateEvent event=%d eventp=%p: completed current iteration %ld of %ld", event, e, current_iterate_pos,
hostDB.refcountcache->partition_count());