]> git.sur5r.net Git - openldap/commitdiff
Partial revert c2cac4588a40480c020d320b544bc5f8e72adb11
authorHoward Chu <hyc@symas.com>
Wed, 12 Jun 2013 15:41:32 +0000 (08:41 -0700)
committerHoward Chu <hyc@symas.com>
Wed, 12 Jun 2013 15:41:32 +0000 (08:41 -0700)
MDB_NEXT was fine before, duh.

libraries/liblmdb/mdb.c

index 3f314f4cf2107a1853beb4b4a0e7018314af7f18..2f6a02735f516b10436a87d436b5b4664e6cfdb2 100644 (file)
@@ -4947,11 +4947,9 @@ fetchm:
        case MDB_NEXT:
        case MDB_NEXT_DUP:
        case MDB_NEXT_NODUP:
-               if (!(mc->mc_flags & C_INITIALIZED)) {
+               if (!(mc->mc_flags & C_INITIALIZED))
                        rc = mdb_cursor_first(mc, key, data);
-                       if (rc)
-                               break;
-               } else
+               else
                        rc = mdb_cursor_next(mc, key, data, op);
                break;
        case MDB_PREV: