Allow reading freelist while working on it
authorHoward Chu <hyc@symas.com>
Thu, 2 May 2013 05:43:35 +0000 (22:43 -0700)
committerHoward Chu <hyc@symas.com>
Thu, 2 May 2013 05:45:15 +0000 (22:45 -0700)
The circular dependency issues appear to have been resolved.
Still, need to watch closely, maybe revert this change if
problems arise.

libraries/liblmdb/mdb.c

index 09fc3e29e8c9a85cb4850f5c172e800d14838904..7d4383f886714b9e88c0fa6c7d04713e442ae186 100644 (file)
@@ -1398,6 +1398,7 @@ none:
 
                                mdb_cursor_init(&m2, txn, FREE_DBI, NULL);
                                do {
+#ifdef MDB_PARANOID    /* Seems like we can ignore this now */
                                        /* If on freelist, don't try to read more. If what we have
                                         * right now isn't enough just use new pages.
                                         * TODO: get all of this working. Many circular dependencies...
@@ -1406,6 +1407,7 @@ none:
                                                retry = 0;
                                                readit = 0;
                                        }
+#endif
                                        if (readit) {
                                                MDB_val key, data;
                                                pgno_t *idl, *mop2;