chiark / gitweb /
Add a new 'wait' flag to the rescan command. This allows the caller
authorRichard Kettlewell <rjk@greenend.org.uk>
Sun, 18 May 2008 16:51:36 +0000 (17:51 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sun, 18 May 2008 16:51:36 +0000 (17:51 +0100)
commitdd9af5cb6877b3c6c6b33d99800ec35745272729
tree056bba8dcb9ca0cebd655edc805feefa46a6bd5c
parent27ed5a6987fc300f25569628e9152fafcf34c49f
Add a new 'wait' flag to the rescan command.  This allows the caller
to request that the rescan command blocks until the rescan is
complete.

The reason is that if you run the tests on a Linux tmpfs they would
with high probability hang, due to the rescan completing before the
rescan_monitor had started up.

The flags is available in the Python interface but not the C interface
or the command-line client.  This could easily be fixed if there is
demand.

There's also a 'fresh' flag, to demand that the rescan start after the
receipt of the command (i.e. to guarantee your new tracks make it in)
but I disabled that due to the inconvenience of testing it.  However
the code is still there if anyone feels like writing tests.
doc/disorder_protocol.5.in
lib/trackdb.c
lib/trackdb.h
python/disorder.py.in
server/disorderd.c
server/server.c
server/state.c
tests/dtest.py