diff options
author | drh <drh@noemail.net> | 2009-09-08 01:14:48 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2009-09-08 01:14:48 +0000 |
commit | 3e9ca09453ea4bde487be8365a8e369f1aa809ab (patch) | |
tree | e5d97b8091389faab037235d53caef09a770793e /src/btree.c | |
parent | 417168ade2f2c96a1e5800de2ca75f968de5db76 (diff) | |
download | sqlite-3e9ca09453ea4bde487be8365a8e369f1aa809ab.tar.gz sqlite-3e9ca09453ea4bde487be8365a8e369f1aa809ab.zip |
Code simplifications, especially to the pseudo-table logic, and comment
improvements.
FossilOrigin-Name: 52449a9569b7142095cc88ee208b31cc59a3cab4
Diffstat (limited to 'src/btree.c')
-rw-r--r-- | src/btree.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/btree.c b/src/btree.c index 903b782bc..dde289752 100644 --- a/src/btree.c +++ b/src/btree.c @@ -6420,8 +6420,10 @@ static int balance(BtCursor *pCur){ ** a positive value if pCur points at an etry that is larger than ** (pKey, nKey)). ** -** If the seekResult parameter is 0, then cursor pCur may point to any -** entry or to no entry at all. In this case this function has to seek +** If the seekResult parameter is non-zero, then the caller guarantees that +** cursor pCur is pointing at the existing copy of a row that is to be +** overwritten. If the seekResult parameter is 0, then cursor pCur may +** point to any entry or to no entry at all and so this function has to seek ** the cursor before the new key can be inserted. */ int sqlite3BtreeInsert( @@ -6433,7 +6435,7 @@ int sqlite3BtreeInsert( int seekResult /* Result of prior MovetoUnpacked() call */ ){ int rc; - int loc = seekResult; + int loc = seekResult; /* -1: before desired location +1: after */ int szNew; int idx; MemPage *pPage; |