diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-04-08 16:01:20 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-04-08 16:01:20 +0300 |
commit | 8f03db2c7682f2564aaa54cc4151b090379bc99f (patch) | |
tree | 4e5f8338cd26abe3d246414dcf2c50b80316c55e /macros.in | |
parent | 30068b52802fe3dbab709b596972be34fdb08ba1 (diff) | |
download | rpm-8f03db2c7682f2564aaa54cc4151b090379bc99f.tar.gz rpm-8f03db2c7682f2564aaa54cc4151b090379bc99f.tar.bz2 rpm-8f03db2c7682f2564aaa54cc4151b090379bc99f.zip |
A little bit of sanity to dbiNew()
- lose the hysterical dbi_use_env condition and usedbenv option
this is always enabled
- ensure mpool is always initialized, lose the config option (this
is a mandatory BDB subsystem, not a bleeping configurable)
- let pagesize be what it is even when no configuration is present
- avoid overriding dbi_mmapsize and dbi_cachesize if set in the configuratio
- these are all per-environment, not per-dbi settings but for now...
Diffstat (limited to 'macros.in')
-rw-r--r-- | macros.in | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -542,7 +542,6 @@ print (t)\ # thread ??? DB_THREAD (useless w/o posix mutexes on linux) #---------------------- DBENV->open bits: # joinenv DB_JOIN_ENV -# mpool DB_INIT_MPOOL # cdb +++ DB_INIT_CDB # txn ??? DB_INIT_TXN # log ??? DB_INIT_LOG @@ -565,19 +564,18 @@ print (t)\ # ht_dup +++ (hash only) DB_DUP # ht_dupsort +++ (hash only) DB_DUPSORT #----------------------- rpmdb specific configuration: -# usedbenv (always on) Use db3 environment? # verify (db3 only) Verify Packages db after RW close? # lockdbfd (always on for Packages) Use fcntl(2) locking ? # nofsync Disable fsync(2) call performed after db3 writes? # # XXX Use transactions and logs for rpmdb durability (no clue yet): -#%__dbi_other create joinenv mpool txn log \ +#%__dbi_other create joinenv txn log \ # mp_mmapsize=8Mb mp_size=512Kb # Use a CDB database model for concurrent access. # XXX Add "private" here for legacy interoperation transiting to glibc+nptl. -%__dbi_cdb create cdb mpool mp_mmapsize=16Mb mp_size=1Mb +%__dbi_cdb create cdb mp_mmapsize=16Mb mp_size=1Mb %__dbi_other %{?__dbi_cdb} |