The mdb_drop() can get slow when the cache size is several GB,
so that the init daemon times out when waiting for the daemon to start,
and keeps restarting it in a loop.
* would lead to the instance detaching from the cache of others,
* until they reopened cache explicitly or cleared it for some reason.
*/
+#ifndef LMDB_NO_DROP
{
MDB_txn *txn = NULL;
int ret = txn_get(env, &txn, false);
}
kr_log_info("[cache] clearing error, falling back\n");
}
+#endif
/* We are about to switch to a different file, so end all txns, to be sure. */
(void) cdb_sync(db);