OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall Root: /v/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-src Date: 22-Aug-2005 08:21:28 Branch: HEAD Handle: 2005082207212800 Modified files: openpkg-src/sqlite sqlite.patch.v3 Log: apply a vendor patch which fixes some locking issues Summary: Revision Changes Path 1.5 +20 -0 openpkg-src/sqlite/sqlite.patch.v3 ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/sqlite/sqlite.patch.v3 ============================================================================ $ cvs diff -u -r1.4 -r1.5 sqlite.patch.v3 --- openpkg-src/sqlite/sqlite.patch.v3 22 Aug 2005 06:18:02 -0000 1.4 +++ openpkg-src/sqlite/sqlite.patch.v3 22 Aug 2005 06:21:28 -0000 1.5 @@ -13,3 +13,23 @@ ######### # Figure out whether or not we have a "usleep()" function. +Index: src/os_unix.c +--- src/os_unix.c 2005/08/13 17:17:02 1.49 ++++ src/os_unix.c 2005/08/21 21:45:02 1.50 +@@ -1278,13 +1278,13 @@ + */ + int *aNew; + struct openCnt *pOpen = id->pOpen; +- pOpen->nPending++; +- aNew = sqliteRealloc( pOpen->aPending, pOpen->nPending*sizeof(int) ); ++ aNew = sqliteRealloc( pOpen->aPending, (pOpen->nPending+1)*sizeof(int) ); + if( aNew==0 ){ + /* If a malloc fails, just leak the file descriptor */ + }else{ + pOpen->aPending = aNew; +- pOpen->aPending[pOpen->nPending-1] = id->h; ++ pOpen->aPending[pOpen->nPending] = id->h; ++ pOpen->nPending++; + } + }else{ + /* There are no outstanding locks so we can close the file immediately */ @@ . ______________________________________________________________________ The OpenPKG Project www.openpkg.org CVS Repository Commit List [EMAIL PROTECTED]