commit | e67ca420e4eb6ddf8ceefeb0d9dcc47d9ca189fc | [log] [tgz] |
---|---|---|
author | Jeff Brown <jeffbrown@google.com> | Wed Mar 21 17:24:05 2012 -0700 |
committer | Jeff Brown <jeffbrown@google.com> | Wed Mar 21 18:08:09 2012 -0700 |
tree | d8d0206806fc245148ac7cf12ad3c8f7312f1d09 | |
parent | 3e6792232aa0ce3e650eaa03529c9eb2fe023ca9 [diff] |
Throw if WAL enabled/disabled when connections are in use. Changing WAL mode requires obtaining an exclusive lock on the database and can only be done when there are NO other active database connections. Check that this is really the case, and bail with a useful error message if an application attempts to change WAL mode while transactions are in progress. Expose disableWriteAheadLogging() in the API. Change-Id: I87599de3b88c53dcd75677aefd72e40de216c2c1