projects
/
platform
/
upstream
/
libsolv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5960aab
)
- set thread count on fedora so that berkeleydb doesn't die
author
Michael Schroeder
<mls@suse.de>
Wed, 17 Feb 2010 15:47:24 +0000
(16:47 +0100)
committer
Michael Schroeder
<mls@suse.de>
Wed, 17 Feb 2010 15:47:24 +0000
(16:47 +0100)
ext/repo_rpmdb.c
patch
|
blob
|
history
diff --git
a/ext/repo_rpmdb.c
b/ext/repo_rpmdb.c
index
50c8a39
..
0214979
100644
(file)
--- 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)
{