[OpenSIPS-Devel] [OpenSIPS/opensips] c10248: drouting: Do not start with NULL DB connections

Liviu Chircu noreply at github.com
Tue Aug 4 10:02:19 EST 2020

  Branch: refs/heads/3.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: c10248b88b3f227e0f6dd40fd7ec4f643824ab33
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2020-08-04 (Tue, 04 Aug 2020)

  Changed paths:
    M modules/drouting/drouting.c

  Log Message:
  drouting: Do not start with NULL DB connections

Force all DB connection objects to be created right from the start,
otherwise strange, hard to diagnose errors may _occasionally_ pop up
during runtime:

 ERROR:core:db_use_table: invalid parameter value (nil), 0x7ff31329a108
 ERROR:drouting:dr_state_flusher: cannot select table "dr_gateways"

    ... or:

 INFO:drouting:dr_reload_cmd: dr_reload MI command received!
 CRITICAL:core:db_table_version: invalid parameter value
 ERROR:core:db_check_table_version: querying version for table dr_gateways
 CRITICAL:drouting:dr_reload_data_head: failed to load routing info
 CRITICAL:drouting:dr_reload_cmd: Failed to load data head

(cherry picked from commit 8a9a396d4d1a7025a1fe93d564f1ebe5150961b4)
(cherry picked from commit e2e989ddb851b98ef1419c146d857ab7da1b4800)

More information about the Devel mailing list