鐢變簬瀹㈡埛绔湰韜殑鏁版嵁瀹屾暣鎬т笉閲嶈錛屾ц兘闈炲父閲嶈錛屾墍浠ユ兂紱佹榪欎釜鏂囦歡鐨勭敓鎴愩?br />鍚庢潵鏌ヤ簡涓涓嬫枃妗o紝騫跺疄璺佃繃鍚庯紝鍙戠幇緗戠粶涓婃墍鏈夌殑鍏充簬鍏抽棴/鎵撳紑鏌愪簺瀹忔潵闃叉鐢熸垚鐨勬柟娉曢兘涓嶇鐢ㄣ傛儏鎬ヤ箣涓嬶紝鍙湁鏀規簮鐮佷簡銆?br />鏀圭殑鍦版柟鏄湪main.c 鐨?nbsp;sqlite3BtreeFactory 閲岋紝鐩存帴鍔犱釜瀹忓氨濂戒簡 omitJournal
1 int sqlite3BtreeFactory(
2 const sqlite3 *db, /* Main database when opening aux otherwise 0 */
3 const char *zFilename, /* Name of the file containing the BTree database */
4 int omitJournal, /* if TRUE then do not journal this file */
5 int nCache, /* How many pages in the page cache */
6 int vfsFlags, /* Flags passed through to vfsOpen */
7 Btree **ppBtree /* Pointer to new Btree object written here */
8 ){
9 int btFlags = 0;
10 int rc;
11
12 assert( sqlite3_mutex_held(db->mutex) );
13 assert( ppBtree != 0);
14
15 #ifdef OMIT_JOURNAL
16 omitJournal = 1; //!< turn off journal file
17 #endif

]]>