diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-04-09 14:53:31 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-04-09 14:53:31 +0300 |
commit | ba6b82d3faca3c5ee703ee16fe97b03892ee479a (patch) | |
tree | 5243b695cb30ccae2253d577308e82ad011d7a98 /macros.in | |
parent | 72a36aed42ed1facc0ffaccb4f91d4ae30d7a33d (diff) | |
download | librpm-tizen-ba6b82d3faca3c5ee703ee16fe97b03892ee479a.tar.gz librpm-tizen-ba6b82d3faca3c5ee703ee16fe97b03892ee479a.tar.bz2 librpm-tizen-ba6b82d3faca3c5ee703ee16fe97b03892ee479a.zip |
Simplify the dbenv->open() flags shuffle
- We always create an environment. If we dont have permissions to create
or join a shared environment, we use a private environment. Instead
of trying to figure out what to do beforehand, retry dbenv->open()
with different flags to see if it succeeds. This eliminates some
potential races when others might create/remove the environment
while we're pondering about appropriate flags.
- Lose the "create" bdb config option, this is something we always
want to decide internally.
- Remove "force" bdb config option, DB_FORCE is dbenv->remove() option
and its value clashes with DB_CREATE...
Diffstat (limited to 'macros.in')
-rw-r--r-- | macros.in | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -537,8 +537,6 @@ print (t)\ #---------------------- DBENV->open parameters and tunable values: # mmapsize=16Mb DBENV->set_mp_mmapsize # cachesize=1Mb DBENV->set_cachesize, DB->set_cachesize -#---------------------- DBENV->open and DB->open common bits: -# create DB_CREATE #---------------------- DBENV->open bits: # cdb +++ DB_INIT_CDB # txn ??? DB_INIT_TXN @@ -568,12 +566,12 @@ print (t)\ # # XXX Use transactions and logs for rpmdb durability (no clue yet): -#%__dbi_other create txn log \ +#%__dbi_other 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 mp_mmapsize=16Mb mp_size=1Mb +%__dbi_cdb cdb mp_mmapsize=16Mb mp_size=1Mb %__dbi_other %{?__dbi_cdb} |