Changeset 6460f64 in git for xcache.c


Ignore:
Timestamp:
2006-09-07T11:40:09Z (13 years ago)
Author:
Xuefer <xuefer@…>
Branches:
1.1, 1.2, 1.3, 3.0, 3.1, 3.2, master, trunk
Children:
b980b78
Parents:
c625b70
Message:

fix cache clear corrupted bug

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@141 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xcache.c

    rc625b70 r6460f64  
    343343
    344344    pp = &cache->deletes;
    345     for (p = *pp; p; p = p->next) {
     345    for (p = *pp; p; p = *pp) {
    346346        if (XG(request_time) - p->dtime > 3600) {
    347347            p->refcount = 0;
     
    14891489        case XC_OP_CLEAR:
    14901490            {
    1491                 xc_entry_t *e;
     1491                xc_entry_t *e, *next;
    14921492                int i, c;
    14931493
     
    15001500                ENTER_LOCK(cache) {
    15011501                    for (i = 0, c = cache->hentry->size; i < c; i ++) {
    1502                         for (e = cache->entries[i]; e; e = e->next) {
     1502                        for (e = cache->entries[i]; e; e = next) {
     1503                            next = e->next;
    15031504                            xc_entry_remove_dmz(e TSRMLS_CC);
    15041505                        }
Note: See TracChangeset for help on using the changeset viewer.