Changeset 856 in svn for trunk/xcache.c


Ignore:
Timestamp:
2012-03-28T09:30:46Z (3 years ago)
Author:
Xuefer
Message:

store entry_var_t

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r854 r856  
    267267    stored_xce = type == XC_TYPE_PHP
    268268        ? (xc_entry_t *) xc_processor_store_xc_entry_php_t(cache, (xc_entry_php_t *) xce TSRMLS_CC)
    269         : xc_processor_store_xc_entry_t(cache, xce TSRMLS_CC);
     269        : (xc_entry_t *) xc_processor_store_xc_entry_var_t(cache, (xc_entry_var_t *) xce TSRMLS_CC);
    270270    if (stored_xce) {
    271271        xc_entry_add_dmz(cache, entryslotid, stored_xce);
     
    281281{
    282282    return (xc_entry_php_t *) xc_entry_store_dmz(XC_TYPE_PHP, cache, entryslotid, (xc_entry_t *) xce TSRMLS_CC);
     283}
     284/* }}} */
     285static xc_entry_var_t *xc_entry_var_store_dmz(xc_cache_t *cache, xc_hash_value_t entryslotid, xc_entry_var_t *xce TSRMLS_DC) /* {{{ */
     286{
     287    return (xc_entry_var_t *) xc_entry_store_dmz(XC_TYPE_VAR, cache, entryslotid, (xc_entry_t *) xce TSRMLS_CC);
    283288}
    284289/* }}} */
     
    27542759        }
    27552760        xce.value = value;
    2756         RETVAL_BOOL(xc_entry_store_dmz(XC_TYPE_VAR, cache, entry_hash.entryslotid, (xc_entry_t *) &xce TSRMLS_CC) != NULL ? 1 : 0);
     2761        RETVAL_BOOL(xc_entry_var_store_dmz(cache, entry_hash.entryslotid, &xce TSRMLS_CC) != NULL ? 1 : 0);
    27572762    } LEAVE_LOCK(cache);
    27582763}
     
    29442949            xc_entry_remove_dmz(XC_TYPE_VAR, cache, entry_hash.cacheslotid, (xc_entry_t *) stored_xce TSRMLS_CC);
    29452950        }
    2946         xc_entry_store_dmz(XC_TYPE_VAR, cache, entry_hash.cacheslotid, (xc_entry_t *) &xce TSRMLS_CC);
     2951        xc_entry_var_store_dmz(cache, entry_hash.cacheslotid, &xce TSRMLS_CC);
    29472952
    29482953    } LEAVE_LOCK(cache);
Note: See TracChangeset for help on using the changeset viewer.