Skip to content

Commit ef57dfa

Browse files
authored
TS-4674: Remove useless assert statement (#809)
Now that we have clean allocations (instead of clobbering existing things) there is no need to have this assertion. In practice this assertion is actually incorrect, because in the case where we want to extend the lifetime of a stale record (since the response we got was broken) we'll fail this assert. This closes #809
1 parent e83ff17 commit ef57dfa

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

iocore/hostdb/HostDB.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,9 +1332,6 @@ HostDBContinuation::dnsEvent(int event, HostEnt *e)
13321332
r = lookup_done(md5.ip, e->ent.h_name, false, ttl_seconds, &e->srv_hosts, r);
13331333
}
13341334

1335-
// @c lookup_done should always return a valid value so @a r should be null @c NULL.
1336-
ink_assert(r && r->app.allotment.application1 == 0 && r->app.allotment.application2 == 0);
1337-
13381335
// Conditionally make rr record entries
13391336
if (is_rr) {
13401337
r->app.rr.offset = offset;

0 commit comments

Comments
 (0)