]> Sergey Matveev's repositories - public-inbox.git/blobdiff - script/public-inbox-watch
watch: improve fairness during full rescans
[public-inbox.git] / script / public-inbox-watch
index a72180c90b74c89f35315196e237a632953671f0..51f1baa29c98868c6d9ded5c57702540fc1d3a46 100755 (executable)
@@ -13,7 +13,7 @@ my $reload = sub {
 };
 $reload->();
 if ($watch_md) {
-       my $scan = sub { $watch_md->scan if $watch_md };
+       my $scan = sub { $watch_md->trigger_scan('full') if $watch_md };
        $SIG{HUP} = $reload;
        $SIG{USR1} = $scan;
        $SIG{ALRM} = sub { $SIG{ALRM} = 'DEFAULT'; $scan->() };