This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new b553829 TS-4274 Use the correct hostdb levels when calling
lookup_block
b553829 is described below
commit b55382986a6f720be82ed84d7be2607bc90e225d
Author: Masa Sekimura <[email protected]>
AuthorDate: Sat May 14 20:06:36 2016 -0600
TS-4274 Use the correct hostdb levels when calling lookup_block
This closes #536
---
iocore/hostdb/HostDB.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/iocore/hostdb/HostDB.cc b/iocore/hostdb/HostDB.cc
index 78de0bb..01e3c9a 100644
--- a/iocore/hostdb/HostDB.cc
+++ b/iocore/hostdb/HostDB.cc
@@ -731,7 +731,7 @@ HostDBContinuation::insert(unsigned int attl)
ink_assert(this_ethread() == hostDB.lock_for_bucket(bucket)->thread_holding);
// remove the old one to prevent buildup
- HostDBInfo *old_r = hostDB.lookup_block(folded_md5, 3);
+ HostDBInfo *old_r = hostDB.lookup_block(folded_md5, hostDB.levels);
if (old_r)
hostDB.delete_block(old_r);
HostDBInfo *r = hostDB.insert_block(folded_md5, NULL, 0);
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].