]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Check all watcher's dependencies
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 22 Mar 2017 19:14:37 +0000 (19:14 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 22 Mar 2017 19:14:37 +0000 (19:14 +0000)
src/libserver/symbols_cache.c

index 0deacea3d6ee86542e725bb3be121223fae6fb0e..4a04a73c8c84606a2827b06cb1c7a236eef5f0ec 100644 (file)
@@ -1223,16 +1223,21 @@ rspamd_symbols_cache_watcher_cb (gpointer sessiond, gpointer ud)
                                if (!rspamd_symbols_cache_check_deps (task, cache, it,
                                                checkpoint, 0)) {
                                        remain ++;
-                                       break;
                                }
-
-                               rspamd_symbols_cache_check_symbol (task, cache, it, checkpoint,
-                                               NULL);
+                               else {
+                                       msg_debug_task ("watcher for %d, unblocked item %d",
+                                                       item->id,
+                                                       it->id);
+                                       rspamd_symbols_cache_check_symbol (task, cache, it,
+                                                       checkpoint,
+                                                       NULL);
+                               }
                        }
                }
        }
 
-       msg_debug_task ("finished watcher, %ud symbols waiting", remain);
+       msg_debug_task ("finished watcher for %d, %ud symbols waiting", item->id,
+                       remain);
 }
 
 static gboolean