1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Merge recent trunk changes into the threads branch.

FossilOrigin-Name: 8215202759dbd863edf20aa26ff21da20bc35d73
This commit is contained in:
drh
2014-05-26 20:15:21 +00:00
19 changed files with 251 additions and 43 deletions

View File

@@ -8529,3 +8529,10 @@ void sqlite3BtreeCursorHints(BtCursor *pCsr, unsigned int mask){
assert( mask==BTREE_BULKLOAD || mask==0 );
pCsr->hints = mask;
}
/*
** Return true if the given Btree is read-only.
*/
int sqlite3BtreeIsReadonly(Btree *p){
return (p->pBt->btsFlags & BTS_READ_ONLY)!=0;
}