mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Add a description of access rules for the Schema object and lots of asserts
to verify that the access rules are followed. FossilOrigin-Name: ae8374af057b6e6546e9265148cfffe32fcb0849
This commit is contained in:
@@ -220,6 +220,7 @@ void sqlite3BtreeCursorList(Btree*);
|
||||
/* These routines are used inside assert() statements only. */
|
||||
int sqlite3BtreeHoldsMutex(Btree*);
|
||||
int sqlite3BtreeHoldsAllMutexes(sqlite3*);
|
||||
int sqlite3SchemaMutexHeld(sqlite3*,int,Schema*);
|
||||
u32 sqlite3BtreeMutexCounter(Btree*);
|
||||
#endif
|
||||
#else
|
||||
@@ -232,6 +233,7 @@ void sqlite3BtreeCursorList(Btree*);
|
||||
|
||||
# define sqlite3BtreeHoldsMutex(X) 1
|
||||
# define sqlite3BtreeHoldsAllMutexes(X) 1
|
||||
# define sqlite3BtreeSchemaMutexHeld(X,Y) 1
|
||||
#endif
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user