Defer clearing of locked cached entries.
commitaaea0169f0ba73bdcf3ebede80da87bfecc353af
authorBen Kibbey <bjk@luxsci.net>
Sun, 22 Apr 2012 19:59:14 +0000 (22 15:59 -0400)
committerBen Kibbey <bjk@luxsci.net>
Sun, 22 Apr 2012 20:49:25 +0000 (22 16:49 -0400)
treeba829cbef1161f6d32e0a3a669c9f0a49c10e174
parentac9efe7b3b66b47d88c1b6d3cc4023a0b9b1e931
Defer clearing of locked cached entries.

Rather than returning only an error when the data file mutex is locked
by another thread, both defer clearing the cache entry and return an
error. The cache entry is cleared during the next OPEN, SAVE or cache timer
iteration.
src/cache.c
src/cache.h
src/commands.c