This commit fixes a deadlock that occurs during b1 flushes. It's caused by taking locks in a different order. In the flush, b1 locks the engine and then bolt. However, in the query cursor, a lock is obtained on bolt first (via `DB.Begin()`) and then the engine is locked while reading from the engine's cache. |
||
---|---|---|
.. | ||
b1.go | ||
b1_test.go |