Index: third_party/sqlite/src/src/btmutex.c |
diff --git a/third_party/sqlite/src/src/btmutex.c b/third_party/sqlite/src/src/btmutex.c |
index f9fe5b3dde03c726191d361252bf29d724b1f50a..c9c8572dfb2544616f576f33bbf0b15631f54fce 100644 |
--- a/third_party/sqlite/src/src/btmutex.c |
+++ b/third_party/sqlite/src/src/btmutex.c |
@@ -141,6 +141,7 @@ static void SQLITE_NOINLINE btreeLockCarefully(Btree *p){ |
** Exit the recursive mutex on a Btree. |
*/ |
void sqlite3BtreeLeave(Btree *p){ |
+ assert( sqlite3_mutex_held(p->db->mutex) ); |
if( p->sharable ){ |
assert( p->wantToLock>0 ); |
p->wantToLock--; |