Revert "Use a pthread_rwlock_t for the data file mutex."
commit5a7183609fcc504856202e120dce9f6a157becb4
authorBen Kibbey <bjk@luxsci.net>
Sat, 28 Jan 2017 15:23:24 +0000 (28 10:23 -0500)
committerBen Kibbey <bjk@luxsci.net>
Sat, 28 Jan 2017 15:23:24 +0000 (28 10:23 -0500)
treed6afb362809d234937817f5eb18e5e7f1475db28
parent0c85f3c8a923d3fd7b3993224637464a43014e26
Revert "Use a pthread_rwlock_t for the data file mutex."

This reverts commit 9647e53853bd10437868fada6ac27f5decac5e06.

Breaks the cache commands since the lock may be converted to a
rwlock when previously a read-only lock. When converting to a new lock
type, an unlock is required before re-aquiring.
src/cache.c
src/cache.h
src/commands.c
src/mutex.h