mirror of
https://github.com/git-for-windows/git.git
synced 2026-03-17 04:23:29 -05:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user