Skip to content

Commit

Permalink
dialog: extend the fix in commit 3abb14d to profiles without value
Browse files Browse the repository at this point in the history
(cherry picked from commit 3d081c8)
  • Loading branch information
rvlad-patrascu committed May 9, 2019
1 parent 4eded22 commit ae0b4c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/dialog/dlg_profile.c
Expand Up @@ -1113,7 +1113,8 @@ int noval_get_local_count(struct dlg_profile_table *profile)
}

for (cnt = profile->noval_local_counters[i]; cnt; cnt = cnt->next) {
if (profile_repl_cluster && dialog_repl_cluster) {
if (profile->repl_type == REPL_PROTOBIN &&
profile_repl_cluster && dialog_repl_cluster) {
/* don't count dialogs for which we have a backup role */
if (cnt->dlg && get_shtag_state(cnt->dlg) != SHTAG_STATE_BACKUP)
n += cnt->n;
Expand Down

0 comments on commit ae0b4c9

Please sign in to comment.