Don't disable tcache for lazy-lock.

Don't disable tcache when lazy-lock is configured.  There already exists
a mechanism to disable tcache, but doing so automatically due to
lazy-lock causes surprising performance behavior.
This commit is contained in:
Jason Evans 2014-10-04 15:00:51 -07:00
parent 47395a1b4c
commit 16854ebeb7

View File

@ -188,8 +188,6 @@ tcache_get(tsd_t *tsd, bool create)
if (!config_tcache) if (!config_tcache)
return (NULL); return (NULL);
if (config_lazy_lock && !isthreaded)
return (NULL);
tcache = tsd_tcache_get(tsd); tcache = tsd_tcache_get(tsd);
if (!create) if (!create)