We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d52c07 commit 6c64833Copy full SHA for 6c64833
1 file changed
libsql-sqlite3/src/main.c
@@ -2495,12 +2495,12 @@ int libsql_wal_get_frame(
2495
if( !sqlite3SafetyCheckOk(db) ) return SQLITE_MISUSE_BKPT;
2496
#endif
2497
2498
- sqlite3_mutex_enter(db->mutex);
2499
- pPager = sqlite3BtreePager(db->aDb[0].pBt);
2500
- rc = sqlite3PagerWalReadFrameRaw(pPager, iFrame, pBuf, nBuf);
2501
- sqlite3_mutex_leave(db->mutex);
+ sqlite3_mutex_enter(db->mutex);
+ pPager = sqlite3BtreePager(db->aDb[0].pBt);
+ rc = sqlite3PagerWalReadFrameRaw(pPager, iFrame, pBuf, nBuf);
+ sqlite3_mutex_leave(db->mutex);
2502
2503
- return rc;
+ return rc;
2504
2505
}
2506
0 commit comments