/ Check-in [0ffd499f]
Login

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

Overview
Comment:When SQLITE_OMIT_LOOKASIDE is set, do not allocate any lookaside memory since it will never be used.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 0ffd499f2374f2b191080b9952acfed56daf3335
User & Date: drh 2015-07-23 17:16:27
Context
2015-07-23
20:44
Change the name of the OTA extension to RBU: Resumable Bulk Update. check-in: 017c5019 user: drh tags: trunk
17:16
When SQLITE_OMIT_LOOKASIDE is set, do not allocate any lookaside memory since it will never be used. check-in: 0ffd499f user: drh tags: trunk
16:39
The sqlite3ExprCodeGetColumn() is not guaranteed to put the result in the register requested. Fix the skip-scan code generator for WITHOUT ROWID tables so that it always checks the register and copies the result if it lands in the wrong register. Fix for ticket [8fd39115d8f46ece70e7d4b3]. check-in: 793e206f user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/main.c.

   638    638   ** The sz parameter is the number of bytes in each lookaside slot.
   639    639   ** The cnt parameter is the number of slots.  If pStart is NULL the
   640    640   ** space for the lookaside memory is obtained from sqlite3_malloc().
   641    641   ** If pStart is not NULL then it is sz*cnt bytes of memory to use for
   642    642   ** the lookaside memory.
   643    643   */
   644    644   static int setupLookaside(sqlite3 *db, void *pBuf, int sz, int cnt){
          645  +#ifndef SQLITE_OMIT_LOOKASIDE
   645    646     void *pStart;
   646    647     if( db->lookaside.nOut ){
   647    648       return SQLITE_BUSY;
   648    649     }
   649    650     /* Free any existing lookaside buffer for this handle before
   650    651     ** allocating a new one so we don't have to have space for 
   651    652     ** both at the same time.
................................................................................
   688    689       db->lookaside.bMalloced = pBuf==0 ?1:0;
   689    690     }else{
   690    691       db->lookaside.pStart = db;
   691    692       db->lookaside.pEnd = db;
   692    693       db->lookaside.bEnabled = 0;
   693    694       db->lookaside.bMalloced = 0;
   694    695     }
          696  +#endif /* SQLITE_OMIT_LOOKASIDE */
   695    697     return SQLITE_OK;
   696    698   }
   697    699   
   698    700   /*
   699    701   ** Return the mutex associated with a database connection.
   700    702   */
   701    703   sqlite3_mutex *sqlite3_db_mutex(sqlite3 *db){