From: phk Date: Thu, 7 Sep 2006 07:17:31 +0000 (+0000) Subject: remove "age", it was effectively unused. Revisit the idea later. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb3313075e97d9dcf6c6ff189897ccaf30525e1c;p=varnish remove "age", it was effectively unused. Revisit the idea later. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@940 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/storage_file.c b/varnish-cache/bin/varnishd/storage_file.c index 354d388d..c85dea12 100644 --- a/varnish-cache/bin/varnishd/storage_file.c +++ b/varnish-cache/bin/varnishd/storage_file.c @@ -52,7 +52,6 @@ struct smf { struct smf_sc *sc; int alloc; - time_t age; off_t size; off_t offset; @@ -309,8 +308,7 @@ insfree(struct smf_sc *sc, struct smf *sp) TAILQ_FOREACH(sp2, sp->flist, status) { assert(sp2->alloc == 0); assert(sp2->flist == sp->flist); - if (sp->age > sp2->age || - (sp->age == sp2->age && sp->offset < sp2->offset)) { + if (sp->offset < sp2->offset) { TAILQ_INSERT_BEFORE(sp2, sp, status); break; } @@ -429,7 +427,6 @@ free_smf(struct smf *sp) remfree(sc, sp2); sp2->size += sp->size; VSL(SLT_Debug, 0, "FILE CP %p -> %p %ju", sp, sp2, sp2->size); - sp2->age = sp->age; TAILQ_REMOVE(&sc->order, sp, order); free(sp); VSL_stats->n_smf--;