Procházet zdrojové kódy

Remove endless counter incrementing.

In some cases it is not enough to perform compare and exchange
and we still can get race condition in atomic incrementing.
Therefore, it is better to loose a history event than to
log error message each time.
tags/0.5.6
Vsevolod Stakhov před 11 roky
rodič
revize
44fbf9709b
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2
    1
      src/roll_history.c

+ 2
- 1
src/roll_history.c Zobrazit soubor

@@ -101,7 +101,8 @@ rspamd_roll_history_update (struct roll_history *history, struct worker_task *ta
row->completed = FALSE;
}
else {
msg_err ("internal error with history roll occured, row number is invalid: %d", row_num);
/* Race condition */
history->cur_row = 0;
return;
}


Načítá se…
Zrušit
Uložit