Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Fix alignment issue in instrumentation code. (CVS 5005) |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
c9e0d625bcf3ff24229d7f011b4cfbd8 |
User & Date: | danielk1977 2008-04-14 17:42:42.000 |
Context
2008-04-14
| ||
22:57 | Fix #3053: bashism (CVS 5006) (check-in: 7217cecee7 user: mlcreech tags: trunk) | |
17:42 | Fix alignment issue in instrumentation code. (CVS 5005) (check-in: c9e0d625bc user: danielk1977 tags: trunk) | |
16:37 | Do not set the pager to persistent error state if a call to OsAccess() fails. (CVS 5004) (check-in: aa16eb5729 user: danielk1977 tags: trunk) | |
Changes
Changes to src/test_osinst.c.
︙ | ︙ | |||
637 638 639 640 641 642 643 644 645 646 647 648 649 650 | */ InstVfsBinaryLog *pLog = (InstVfsBinaryLog *)p; sqlite3_file *pFile = pLog->pOut; if( pLog->nBuf ){ pFile->pMethods->xWrite(pFile, pLog->zBuf, pLog->nBuf, pLog->iOffset); } pFile->pMethods->xClose(pFile); sqlite3_free(pLog->zBuf); sqlite3_free(pLog); } sqlite3_vfs *sqlite3_instvfs_binarylog( const char *zVfs, const char *zParentVfs, | > | 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 | */ InstVfsBinaryLog *pLog = (InstVfsBinaryLog *)p; sqlite3_file *pFile = pLog->pOut; if( pLog->nBuf ){ pFile->pMethods->xWrite(pFile, pLog->zBuf, pLog->nBuf, pLog->iOffset); } pFile->pMethods->xClose(pFile); sqlite3_free(pLog->pOut); sqlite3_free(pLog->zBuf); sqlite3_free(pLog); } sqlite3_vfs *sqlite3_instvfs_binarylog( const char *zVfs, const char *zParentVfs, |
︙ | ︙ | |||
658 659 660 661 662 663 664 | int rc; pParent = sqlite3_vfs_find(zParentVfs); if( !pParent ){ return 0; } | | < | < | 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 | int rc; pParent = sqlite3_vfs_find(zParentVfs); if( !pParent ){ return 0; } nByte = sizeof(InstVfsBinaryLog) + pParent->mxPathname+1; p = (InstVfsBinaryLog *)sqlite3_malloc(nByte); memset(p, 0, nByte); p->zBuf = sqlite3_malloc(BINARYLOG_BUFFERSIZE); p->zOut = (char *)&p[1]; p->pOut = (sqlite3_file *)sqlite3_malloc(pParent->szOsFile); pParent->xFullPathname(pParent, zLog, pParent->mxPathname, p->zOut); flags = SQLITE_OPEN_READWRITE|SQLITE_OPEN_CREATE|SQLITE_OPEN_MASTER_JOURNAL; pParent->xDelete(pParent, p->zOut, 0); rc = pParent->xOpen(pParent, p->zOut, p->pOut, flags, &flags); if( rc==SQLITE_OK ){ rc = p->pOut->pMethods->xWrite(p->pOut, "sqlite_ostrace1.....", 20, 0); p->iOffset = 20; } |
︙ | ︙ |