]> git.tuebingen.mpg.de Git - paraslash.git/commit
afs: Allow database switching on sighup.
authorAndre Noll <maan@tuebingen.mpg.de>
Wed, 3 Jan 2018 01:49:22 +0000 (02:49 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 13 Mar 2018 02:28:57 +0000 (03:28 +0100)
commit42f69f545fad18480d728bb6f25273976a0c01e0
treeb666db6942c813e4d93ea441e6f501cd0f906435
parentb8ecd28c263ff39366a47fe9f7a5785bd43e89ab
afs: Allow database switching on sighup.

Currently the database dir is set at startup and stays unmodified even
after the sighup handler has reloaded a configuration which specifies
a different database path.

This patch makes it possible to switch to a different database after
SIGHUP was received. To make this work, we only have invalidate the
database_dir pointer after the database has been closed.
afs.c