diff options
author | drh <> | 2022-11-19 14:18:48 +0000 |
---|---|---|
committer | drh <> | 2022-11-19 14:18:48 +0000 |
commit | 1e62057436a904f02e710adb264f539c51a0b66c (patch) | |
tree | 28361622ce8e9424b6fdacadf1d0fb5aea12c32f /src | |
parent | bf9b994f52f076fa955c2d9aabe1c6970f30d205 (diff) | |
download | sqlite-1e62057436a904f02e710adb264f539c51a0b66c.tar.gz sqlite-1e62057436a904f02e710adb264f539c51a0b66c.zip |
Improved comments on the pageFreeArray() routine of btree.c. No changes to
code.
FossilOrigin-Name: 0c2adc6d3547b07e950ae49f07f688f71a21b3ad5a51f16f0e8d49ab91564582
Diffstat (limited to 'src')
-rw-r--r-- | src/btree.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/btree.c b/src/btree.c index 569b596c5..33762cc90 100644 --- a/src/btree.c +++ b/src/btree.c @@ -7448,8 +7448,8 @@ static int pageFreeArray( int nRet = 0; int i; int iEnd = iFirst + nCell; - u8 *pFree = 0; - int szFree = 0; + u8 *pFree = 0; /* \__ Parameters for pending call to */ + int szFree = 0; /* / freeSpace() */ for(i=iFirst; i<iEnd; i++){ u8 *pCell = pCArray->apCell[i]; @@ -7470,6 +7470,9 @@ static int pageFreeArray( return 0; } }else{ + /* The current cell is adjacent to and before the pFree cell. + ** Combine the two regions into one to reduce the number of calls + ** to freeSpace(). */ pFree = pCell; szFree += sz; } |