wiredtiger/wiredtiger — pull request #238 by michaelcahill (2012-06-08 04:08:53+00:00)
Title: Environment variable configuration

Hi Keith,

Can you please take a look at this change and let me know what you think?

The basic idea is to read a WIREDTIGER_CONFIG environment variable and layer that into the wiredtiger_open config. The primary motivation is to be able to easily test different configurations -- e.g., run "make check" with direct I/O. That said, this may be useful in other places: it's been in the back of my head for a while.

One thing to think through is security. I *think* you can always get the same effect by writing a WiredTiger.config file, since you need write permissions to open a database. That said, there might be some reason to lock down the configuration (by making the config file read-only, say), in which case this change would make it easy to get around that.

Thanks,
Michael.