Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Bug fix: named local variable lockStyle as lockingStyle in SQLITE_ENABLE_LOCKING_STYLE block in allocateUnixFile (CVS 3473) |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
aa0b96c3dfa1d8008cd944281c227604 |
User & Date: | aswift 2006-10-11 17:19:46.000 |
Context
2006-10-12
| ||
23:15 | Convert fts2 to store data in a way which allows for much faster updates. Groups of documents form segments which are encoded in a btree layered over a table of blocks, with various tricks to make merges fast. This performs 20x-25x faster than fts1 when loading the Enron corpus, and is only slightly slower for queries. (CVS 3474) (check-in: 85272b2f53 user: shess tags: trunk) | |
2006-10-11
| ||
17:19 | Bug fix: named local variable lockStyle as lockingStyle in SQLITE_ENABLE_LOCKING_STYLE block in allocateUnixFile (CVS 3473) (check-in: aa0b96c3df user: aswift tags: trunk) | |
2006-10-10
| ||
23:22 | Fix leaky symbols. With this change, fts1 and fts2 can both be statically linked. (CVS 3472) (check-in: 5e8bbb85c1 user: shess tags: trunk) | |
Changes
Changes to src/os_unix.c.
︙ | ︙ | |||
2441 2442 2443 2444 2445 2446 2447 | */ static int allocateUnixFile( int h, /* Open file descriptor of file being opened */ OsFile **pId, /* Write completed initialization here */ const char *zFilename, /* Name of the file being opened */ int delFlag /* Delete-on-or-before-close flag */ ){ | | | 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 | */ static int allocateUnixFile( int h, /* Open file descriptor of file being opened */ OsFile **pId, /* Write completed initialization here */ const char *zFilename, /* Name of the file being opened */ int delFlag /* Delete-on-or-before-close flag */ ){ sqlite3LockingStyle lockingStyle; unixFile *pNew; unixFile f; int rc; lockingStyle = sqlite3DetectLockingStyle(zFilename, f.h); if ( lockingStyle == posixLockingStyle ) { sqlite3OsEnterMutex(); |
︙ | ︙ | |||
2481 2482 2483 2484 2485 2486 2487 | releaseLockInfo(f.pLock); releaseOpenCnt(f.pOpen); sqlite3OsLeaveMutex(); *pId = 0; return SQLITE_NOMEM; }else{ *pNew = f; | | | 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 | releaseLockInfo(f.pLock); releaseOpenCnt(f.pOpen); sqlite3OsLeaveMutex(); *pId = 0; return SQLITE_NOMEM; }else{ *pNew = f; switch(lockingStyle) { case afpLockingStyle: /* afp locking uses the file path so it needs to be included in ** the afpLockingContext */ pNew->pMethod = &sqlite3AFPLockingUnixIoMethod; pNew->lockingContext = sqlite3ThreadSafeMalloc(sizeof(afpLockingContext)); ((afpLockingContext *)pNew->lockingContext)->filePath = |
︙ | ︙ |