Ver código fonte

[Minor] Set current item when processing composites

tags/3.3
Vsevolod Stakhov 1 ano atrás
pai
commit
160c6ad516
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4
    0
      src/libserver/symcache/symcache_c.cxx

+ 4
- 0
src/libserver/symcache/symcache_c.cxx Ver arquivo

@@ -657,10 +657,14 @@ rspamd_symcache_composites_foreach(struct rspamd_task *task,
auto *dyn_item = cache_runtime->get_dynamic_item(item->id);

if (!dyn_item->started) {
auto *old_item = cache_runtime->set_cur_item(dyn_item);
func((void *)item->get_name().c_str(), item->get_cbdata(), fd);
dyn_item->finished = true;
cache_runtime->set_cur_item(old_item);
}
});

cache_runtime->set_cur_item(nullptr);
}

gboolean

Carregando…
Cancelar
Salvar