diff options
Diffstat (limited to 'db2/hash/hash_page.c')
-rw-r--r-- | db2/hash/hash_page.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/db2/hash/hash_page.c b/db2/hash/hash_page.c index ce692f2e41..5b3463947b 100644 --- a/db2/hash/hash_page.c +++ b/db2/hash/hash_page.c @@ -317,7 +317,7 @@ __ham_item_prev(hashp, cursorp, mode) if (F_ISSET(cursorp, H_ISDUP)) { if (cursorp->dpgno == PGNO_INVALID) { /* Duplicates are on-page. */ - if (cursorp->dup_off != 0) + if (cursorp->dup_off != 0) { if ((ret = __ham_get_cpage(hashp, cursorp, mode)) != 0) return (ret); @@ -334,6 +334,7 @@ __ham_item_prev(hashp, cursorp, mode) return (__ham_item(hashp, cursorp, mode)); } + } } else if (cursorp->dndx > 0) { /* Duplicates are off-page. */ cursorp->dndx--; return (__ham_item(hashp, cursorp, mode)); |