Skip to content

Commit

Permalink
Revert "dialog: fix partition recursive call when wildcard is used"
Browse files Browse the repository at this point in the history
This reverts commit 689a4d1.
  • Loading branch information
razvancrainea committed Jan 7, 2020
1 parent 689a4d1 commit 8481655
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions modules/dialog/dlg_db_handler.c
Expand Up @@ -569,11 +569,9 @@ static int load_dialog_info_from_db(int dlg_hash_size)

d_entry = &d_table->entries[hash_entry];
dlg_lock(d_table, d_entry);
dlg->locked_by = process_no;

if (get_dlg_unsafe(d_entry, &callid, &from_tag, &to_tag,
&dlg) == 0) {
dlg->locked_by = 0;
dlg_unlock(d_table, d_entry);
LM_DBG("dialog already exists, skipping (ci: %.*s)\n",
callid.len, callid.s);
Expand Down Expand Up @@ -632,8 +630,6 @@ static int load_dialog_info_from_db(int dlg_hash_size)
LM_ERR("dlg_set_leg_info failed\n");
/* destroy the dialog */
unref_dlg_unsafe(dlg, 1, d_entry);
dlg->locked_by = 0;
dlg_unlock(d_table, d_entry);
continue;
}
dlg->legs_no[DLG_LEG_200OK] = DLG_FIRST_CALLEE_LEG;
Expand Down Expand Up @@ -686,8 +682,6 @@ static int load_dialog_info_from_db(int dlg_hash_size)
ZSW(dlg->legs[callee_idx(dlg)].tag.s));
/* destroy the dialog */
unref_dlg_unsafe(dlg, 1, d_entry);
dlg->locked_by = 0;
dlg_unlock(d_table, d_entry);
continue;
}

Expand All @@ -702,7 +696,6 @@ static int load_dialog_info_from_db(int dlg_hash_size)
dlg->legs[callee_idx(dlg)].last_gen_cseq =
(unsigned int)(VAL_INT(values+21));

dlg->locked_by = 0;
dlg_unlock(d_table, d_entry);

/* profiles */
Expand Down

0 comments on commit 8481655

Please sign in to comment.