diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-10-20 16:38:46 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-10-20 16:53:00 +0300 |
commit | a916e399ab0734816f1e4567b34db0b55e9f5c7c (patch) | |
tree | d9d421d50c586c1d2ffd43f312017bd2887ce602 /macros.in | |
parent | ca36c2a12bcde1340da0421a788863f83aaccd08 (diff) | |
download | librpm-tizen-a916e399ab0734816f1e4567b34db0b55e9f5c7c.tar.gz librpm-tizen-a916e399ab0734816f1e4567b34db0b55e9f5c7c.tar.bz2 librpm-tizen-a916e399ab0734816f1e4567b34db0b55e9f5c7c.zip |
Hardwire the fundamental BDB access method configuration inside rpm
- The different access methods have different capabilities and are not
interchangeable in all situations. Currently we can use either
hash and btree but this might not be always the case for all indexes.
- We'll eventually want to force-switch the index types to our liking,
but for now follow these simple rules:
1) For existing databases, we accept both btree and hash
2) For newly created databases, the main Packages database remains
a hash, all indexes are btrees.
- Rip out nearly all the rest of the remaining macro configuration.
Diffstat (limited to 'macros.in')
-rw-r--r-- | macros.in | 32 |
1 files changed, 2 insertions, 30 deletions
@@ -517,9 +517,6 @@ print (t)\ # I believe that you will find pagesize=512 "best". # 3) Adding nofsync increases speed, but risks total data loss. Fiddle shared # and/or mp_size instead. -# 4) btree is faster than hash, but would require some painful rpm release -# engineering to convert everbody's databases to btree, not gonna happen -# soon. # # token works? Berkeley db flag or value #================================================== @@ -528,10 +525,6 @@ print (t)\ # cachesize=1Mb DBENV->set_cachesize, DB->set_cachesize #---------------------- DB->open bits: # nommap ??? DB_NOMMAP -#---------------------- DB->open types: -# btree DB_BTREE -# hash DB_HASH -# unknown +++ DB_UNKNOWN #----------------------- rpmdb specific configuration: # lockdbfd (always on for Packages) Use fcntl(2) locking ? # nofsync Disable fsync(2) call performed after db3 writes? @@ -540,31 +533,10 @@ print (t)\ # Misc BDB tuning options %__dbi_other mp_mmapsize=16Mb mp_size=1Mb -# -#--- Hash database configuration -%__dbi_htconfig \ - hash \ - %{__dbi_other}\ -%{nil} - -%_dbi_htconfig %{__dbi_htconfig} - -# -#--- Btree database configuration -%__dbi_btconfig \ - btree \ - %{__dbi_other}\ -%{nil} - -%_dbi_btconfig %{__dbi_btconfig} +%_dbi_config %{?__dbi_other} # "Packages" should have shared/exclusive fcntl(2) lock using "lockdbfd". -%_dbi_config_Packages %{_dbi_htconfig} lockdbfd - -%_dbi_config_Dirnames %{_dbi_btconfig} -%_dbi_config_Installtid %{_dbi_btconfig} - -%_dbi_config %{_dbi_htconfig} +%_dbi_config_Packages %{?_dbi_config} lockdbfd # XXX legacy configuration. # Choose db interface: |