Revision c91b0333 xseg/xtypes/xcache.c
b/xseg/xtypes/xcache.c | ||
---|---|---|
171 | 171 |
|
172 | 172 |
r = xhash_delete(cache->entries, (xhashidx)ce->name); |
173 | 173 |
if (r < 0){ |
174 |
//XSEGLOG("Couldn't delete cache entry(h: %llu, cache->nodes[h].priv: %p",
|
|
175 |
// h, cache->nodes[idx].priv);
|
|
174 |
XSEGLOG("Couldn't delete cache entry(h: %llu, name: %s, cache->nodes[h].priv: %p, ref: %llu",
|
|
175 |
h, ce->name, cache->nodes[idx].priv, cache->nodes[idx].ref);
|
|
176 | 176 |
return r; |
177 | 177 |
} |
178 | 178 |
if (cache->flags & XCACHE_LRU_ARRAY) |
... | ... | |
224 | 224 |
lru = __xcache_lru(cache); |
225 | 225 |
//assert lru != Noneidx |
226 | 226 |
//validate lru |
227 |
if (__xcache_remove(cache, lru) < 0) |
|
227 |
if (__xcache_remove(cache, lru) < 0){ |
|
228 |
XSEGLOG("Failed to remove lru: %llu", lru); |
|
228 | 229 |
return NoEntry; |
230 |
} |
|
229 | 231 |
/* Cache entry is put when this function returns, without the |
230 | 232 |
* cache lock held. |
231 | 233 |
*/ |
Also available in: Unified diff