Changeset 323 for trunk/xcache.c
- Timestamp:
- 2006-12-10T09:18:09+01:00 (6 years ago)
- File:
-
- 1 edited
-
trunk/xcache.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xcache.c
r322 r323 148 148 } 149 149 /* }}} */ 150 static void xc_php_remove_dmz(xc_entry_data_php_t *php) /* {{{ */ 150 static void xc_php_addref_dmz(xc_entry_data_php_t *php) /* {{{ */ 151 { 152 php->refcount ++; 153 } 154 /* }}} */ 155 static void xc_php_release_dmz(xc_entry_data_php_t *php) /* {{{ */ 151 156 { 152 157 if (-- php->refcount == 0) { … … 237 242 { 238 243 if (xce->type == XC_TYPE_PHP) { 239 xc_php_re move_dmz(xce->data.php);244 xc_php_release_dmz(xce->data.php); 240 245 } 241 246 xce->cache->mem->handlers->free(xce->cache->mem, (xc_entry_t *)xce); … … 1291 1296 if (newlycompiled) { 1292 1297 stored_php = xc_php_store_dmz(&php TSRMLS_CC); 1293 /* error */1294 1298 if (!stored_php) { 1299 /* error */ 1295 1300 break; 1296 1301 } 1297 1302 } 1298 1303 /* entry_store */ 1304 xc_php_addref_dmz(stored_php); 1299 1305 stored_xce = xc_entry_store_dmz(&xce TSRMLS_CC); 1300 1306 if (stored_xce) { 1301 1307 stored_xce->data.php = stored_php; 1302 stored_php->refcount ++;1303 1308 } 1304 1309 else { 1305 1310 /* error */ 1306 xc_php_remove_dmz(stored_php); 1307 stored_php = NULL; 1311 xc_php_release_dmz(stored_php); 1308 1312 } 1309 1313 } LEAVE_LOCK_EX(cache);
Note: See TracChangeset
for help on using the changeset viewer.

