Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: third_party/sqlite/src/src/btree.h

Issue 2732553002: [sql] SQLite patch to implement "smart" auto-vacuum. (Closed)
Patch Set: sigh, keep clang happy on windows Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 ** 2001 September 15 2 ** 2001 September 15
3 ** 3 **
4 ** The author disclaims copyright to this source code. In place of 4 ** The author disclaims copyright to this source code. In place of
5 ** a legal notice, here is a blessing: 5 ** a legal notice, here is a blessing:
6 ** 6 **
7 ** May you do good and not evil. 7 ** May you do good and not evil.
8 ** May you find forgiveness for yourself and forgive others. 8 ** May you find forgiveness for yourself and forgive others.
9 ** May you share freely, never taking more than you give. 9 ** May you share freely, never taking more than you give.
10 ** 10 **
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 int sqlite3BtreeSetPagerFlags(Btree*,unsigned); 71 int sqlite3BtreeSetPagerFlags(Btree*,unsigned);
72 int sqlite3BtreeSetPageSize(Btree *p, int nPagesize, int nReserve, int eFix); 72 int sqlite3BtreeSetPageSize(Btree *p, int nPagesize, int nReserve, int eFix);
73 int sqlite3BtreeGetPageSize(Btree*); 73 int sqlite3BtreeGetPageSize(Btree*);
74 int sqlite3BtreeMaxPageCount(Btree*,int); 74 int sqlite3BtreeMaxPageCount(Btree*,int);
75 u32 sqlite3BtreeLastPage(Btree*); 75 u32 sqlite3BtreeLastPage(Btree*);
76 int sqlite3BtreeSecureDelete(Btree*,int); 76 int sqlite3BtreeSecureDelete(Btree*,int);
77 int sqlite3BtreeGetOptimalReserve(Btree*); 77 int sqlite3BtreeGetOptimalReserve(Btree*);
78 int sqlite3BtreeGetReserveNoMutex(Btree *p); 78 int sqlite3BtreeGetReserveNoMutex(Btree *p);
79 int sqlite3BtreeSetAutoVacuum(Btree *, int); 79 int sqlite3BtreeSetAutoVacuum(Btree *, int);
80 int sqlite3BtreeGetAutoVacuum(Btree *); 80 int sqlite3BtreeGetAutoVacuum(Btree *);
81 int sqlite3BtreeSetAutoVacuumSlackPages(Btree *, int);
82 int sqlite3BtreeGetAutoVacuumSlackPages(Btree *);
81 int sqlite3BtreeBeginTrans(Btree*,int); 83 int sqlite3BtreeBeginTrans(Btree*,int);
82 int sqlite3BtreeCommitPhaseOne(Btree*, const char *zMaster); 84 int sqlite3BtreeCommitPhaseOne(Btree*, const char *zMaster);
83 int sqlite3BtreeCommitPhaseTwo(Btree*, int); 85 int sqlite3BtreeCommitPhaseTwo(Btree*, int);
84 int sqlite3BtreeCommit(Btree*); 86 int sqlite3BtreeCommit(Btree*);
85 int sqlite3BtreeRollback(Btree*,int,int); 87 int sqlite3BtreeRollback(Btree*,int,int);
86 int sqlite3BtreeBeginStmt(Btree*,int); 88 int sqlite3BtreeBeginStmt(Btree*,int);
87 int sqlite3BtreeCreateTable(Btree*, int*, int flags); 89 int sqlite3BtreeCreateTable(Btree*, int*, int flags);
88 int sqlite3BtreeIsInTrans(Btree*); 90 int sqlite3BtreeIsInTrans(Btree*);
89 int sqlite3BtreeIsInReadTrans(Btree*); 91 int sqlite3BtreeIsInReadTrans(Btree*);
90 int sqlite3BtreeIsInBackup(Btree*); 92 int sqlite3BtreeIsInBackup(Btree*);
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 # define sqlite3BtreeLeaveCursor(X) 363 # define sqlite3BtreeLeaveCursor(X)
362 # define sqlite3BtreeLeaveAll(X) 364 # define sqlite3BtreeLeaveAll(X)
363 365
364 # define sqlite3BtreeHoldsMutex(X) 1 366 # define sqlite3BtreeHoldsMutex(X) 1
365 # define sqlite3BtreeHoldsAllMutexes(X) 1 367 # define sqlite3BtreeHoldsAllMutexes(X) 1
366 # define sqlite3SchemaMutexHeld(X,Y,Z) 1 368 # define sqlite3SchemaMutexHeld(X,Y,Z) 1
367 #endif 369 #endif
368 370
369 371
370 #endif /* SQLITE_BTREE_H */ 372 #endif /* SQLITE_BTREE_H */
OLDNEW
« no previous file with comments | « third_party/sqlite/patches/0011-Allow-auto-vacuum-to-work-with-chunks.patch ('k') | third_party/sqlite/src/src/btree.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698