- set thread count on fedora so that berkeleydb doesn't die
authorMichael Schroeder <mls@suse.de>
Wed, 17 Feb 2010 15:47:24 +0000 (16:47 +0100)
committerMichael Schroeder <mls@suse.de>
Wed, 17 Feb 2010 15:47:24 +0000 (16:47 +0100)
ext/repo_rpmdb.c

index 50c8a39..0214979 100644 (file)
@@ -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)
     {