fixup! fscache: update fscache to be thread specific instead of global

We do fall back to not enabling the FSCache when we're out of
Thread-Local indexes, but we failed to unlock the mutex.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin
2019-05-09 14:17:11 +02:00
parent 0ccd8caa6a
commit 2a85ba50fe

View File

@@ -454,8 +454,10 @@ int fscache_enable(size_t initial_size)
if (!initialized) {
if (!dwTlsIndex) {
dwTlsIndex = TlsAlloc();
if (dwTlsIndex == TLS_OUT_OF_INDEXES)
if (dwTlsIndex == TLS_OUT_OF_INDEXES) {
LeaveCriticalSection(&fscache_cs);
return 0;
}
}
/* redirect opendir and lstat to the fscache implementations */