
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Repository Maintenance
|
81
The folks at SleepyCat (the producers of Berkeley DB) understand that different
databases have different requirements, and so they have provided a mechanism for
overriding at runtime many of the configuration values for the Berkeley DB environ-
ment. Berkeley checks for the presence of a file named DB_CONFIG in each environ-
ment directory, and parses the options found in that file for use with that particular
Berkeley environment.
The Berkeley configuration file for your repository is located in the db environment
directory, at repos/db/DB_CONFIG. Subversion itself creates this file when it creates
the rest of the repository. The file initially contains some default options, as well as
pointers to the Berkeley DB online documentation so you can read about what those
options do. Of course, you are free to add any of the supported Berkeley DB options
to your DB_CONFIG file. Just be aware that while Subversion never attempts to read
or interpret the contents of the file, and makes no use of the option settings in it,
you’ll want to avoid any configuration changes that may cause Berkeley DB to
behave in a fashion that is unexpected by the rest of the Subversion code. Also,
changes made to DB_CONFIG won’t take effect until you recover the database envi-
ronment (using ...