diff options
author | drh <drh@noemail.net> | 2019-04-17 21:12:05 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2019-04-17 21:12:05 +0000 |
commit | 680f0fe32aaf79d3e7ea5dba7a0c84c4693812ed (patch) | |
tree | 9ef8294c34dfe62ec2fa60e485ed98d631030d95 /src/wal.c | |
parent | e551b5147289167db2b014e8ec28fc7ea2454fc4 (diff) | |
download | sqlite-680f0fe32aaf79d3e7ea5dba7a0c84c4693812ed.tar.gz sqlite-680f0fe32aaf79d3e7ea5dba7a0c84c4693812ed.zip |
Small performance and size optimization in sqlite3WalFindFrame().
FossilOrigin-Name: 03f2e78899fad99b0a0951b3a408268276954d4cd785389ed9a0192c9217f6fe
Diffstat (limited to 'src/wal.c')
-rw-r--r-- | src/wal.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2908,9 +2908,9 @@ int sqlite3WalFindFrame( } nCollide = HASHTABLE_NSLOT; for(iKey=walHash(pgno); sLoc.aHash[iKey]; iKey=walNextHash(iKey)){ - u32 iFrame = sLoc.aHash[iKey] + sLoc.iZero; - if( iFrame<=iLast && iFrame>=pWal->minFrame - && sLoc.aPgno[sLoc.aHash[iKey]]==pgno ){ + u32 iH = sLoc.aHash[iKey]; + u32 iFrame = iH + sLoc.iZero; + if( iFrame<=iLast && iFrame>=pWal->minFrame && sLoc.aPgno[iH]==pgno ){ assert( iFrame>iRead || CORRUPT_DB ); iRead = iFrame; } |