/ Check-in [c3381cd4]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Remove the obsolete and unused sqlite3.inTrans field.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: c3381cd4957013d46075996c3b865177c888d2a8
User & Date: drh 2013-05-28 17:25:48
Context
2013-05-28
17:30
Finish removing the sqlite3.inTrans field. In the previous check-in, it was merely commented out because I failed to select File->Save on my text editor. check-in: 2f97e38a user: drh tags: trunk
17:25
Remove the obsolete and unused sqlite3.inTrans field. check-in: c3381cd4 user: drh tags: trunk
12:11
Many small harmless comment changes. Removal of obsolete comments and fixing misspelled words. No changes to code. check-in: a0d5cc93 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/main.c.

  1020   1020     for(i=0; i<db->nDb; i++){
  1021   1021       Btree *p = db->aDb[i].pBt;
  1022   1022       if( p ){
  1023   1023         if( sqlite3BtreeIsInTrans(p) ){
  1024   1024           inTrans = 1;
  1025   1025         }
  1026   1026         sqlite3BtreeRollback(p, tripCode);
  1027         -      db->aDb[i].inTrans = 0;
         1027  +//      db->aDb[i].inTrans = 0;
  1028   1028       }
  1029   1029     }
  1030   1030     sqlite3VtabRollback(db);
  1031   1031     sqlite3EndBenignMalloc();
  1032   1032   
  1033   1033     if( (db->flags&SQLITE_InternChanges)!=0 && db->init.busy==0 ){
  1034   1034       sqlite3ExpirePreparedStatements(db);

Changes to src/sqliteInt.h.

   744    744   ** in the sqlite.aDb[] array.  aDb[0] is the main database file and
   745    745   ** aDb[1] is the database file used to hold temporary tables.  Additional
   746    746   ** databases may be attached.
   747    747   */
   748    748   struct Db {
   749    749     char *zName;         /* Name of this database */
   750    750     Btree *pBt;          /* The B*Tree structure for this database file */
   751         -  u8 inTrans;          /* 0: not writable.  1: Transaction.  2: Checkpoint */
   752    751     u8 safety_level;     /* How aggressive at syncing data to disk */
   753    752     Schema *pSchema;     /* Pointer to database schema (possibly shared) */
   754    753   };
   755    754   
   756    755   /*
   757    756   ** An instance of the following structure stores a database schema.
   758    757   **