Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Fix bug in test_async.c version of OsFileSize(). (CVS 3095) |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
239e53b4f29b4faf2dbdc2aebd2332ad |
User & Date: | danielk1977 2006-02-14 13:48:34.000 |
Context
2006-02-14
| ||
14:02 | Account for a malloc failure in the asynchronous writer thread in test_async.c (CVS 3096) (check-in: 2f2a8a69cb user: danielk1977 tags: trunk) | |
13:48 | Fix bug in test_async.c version of OsFileSize(). (CVS 3095) (check-in: 239e53b4f2 user: danielk1977 tags: trunk) | |
13:25 | Add simple io error tests for test_async.c. (CVS 3094) (check-in: 528dfb7180 user: danielk1977 tags: trunk) | |
Changes
Changes to src/test_async.c.
︙ | |||
360 361 362 363 364 365 366 | 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 | - - + + | if( async.pQueueLast ){ assert( async.pQueueFirst ); async.pQueueLast->pNext = pWrite; }else{ async.pQueueFirst = pWrite; } async.pQueueLast = pWrite; |
︙ | |||
600 601 602 603 604 605 606 | 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 | - + | for(p=async.pQueueFirst; p; p = p->pNext){ if( p->pFile==(AsyncFile *)id ){ switch( p->op ){ case ASYNC_WRITE: s = MAX(p->iOffset + (i64)(p->nByte), s); break; case ASYNC_TRUNCATE: |
︙ |
Changes to test/async2.test.
1 2 3 4 5 6 7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | - + | # # May you do good and not evil. # May you find forgiveness for yourself and forgive others. # May you share freely, never taking more than you give. # #*********************************************************************** # |
︙ | |||
55 56 57 58 59 60 61 | 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | - | db close set ::sqlite_io_error_pending $n sqlite3async_halt idle sqlite3async_start sqlite3async_wait |
︙ |