From: Richard Kettlewell Date: Sun, 18 May 2008 16:51:36 +0000 (+0100) Subject: Add a new 'wait' flag to the rescan command. This allows the caller X-Git-Tag: 5.0.3~88 X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/commitdiff_plain/dd9af5cb6877b3c6c6b33d99800ec35745272729?hp=dd9af5cb6877b3c6c6b33d99800ec35745272729 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. ---