From: Michael Schroeder Date: Wed, 17 Feb 2010 15:47:24 +0000 (+0100) Subject: - set thread count on fedora so that berkeleydb doesn't die X-Git-Tag: BASE-SuSE-Code-12_1-Branch~160^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee5a3aa958b27c601c6ebb49ef6687cf0f3fa6bd;p=thirdparty%2Flibsolv.git - set thread count on fedora so that berkeleydb doesn't die --- diff --git a/ext/repo_rpmdb.c b/ext/repo_rpmdb.c index 50c8a399..0214979a 100644 --- a/ext/repo_rpmdb.c +++ b/ext/repo_rpmdb.c @@ -1238,6 +1238,9 @@ opendbenv(const char *rootdir) perror("db_env_create"); return 0; } +#if defined(FEDORA) && (DB_VERSION_MAJOR >= 5 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 5)) + dbenv->set_thread_count(dbenv, 8); +#endif snprintf(dbpath, PATH_MAX, "%s/var/lib/rpm", rootdir ? rootdir : ""); if (access(dbpath, W_OK) == -1) {