[OpenSIPS-Devel] [OpenSIPS/opensips] 6374b0: cachedb_mongodb: Allow specifying URL options

Liviu Chircu noreply at github.com
Fri Apr 19 12:11:54 EDT 2019


  Branch: refs/heads/3.0
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 6374b066c37375707b037dc01fa8558023e22838
      https://github.com/OpenSIPS/opensips/commit/6374b066c37375707b037dc01fa8558023e22838
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2019-04-19 (Fri, 19 Apr 2019)

  Changed paths:
    M cachedb/cachedb_id.c
    M cachedb/cachedb_id.h
    M modules/cachedb_mongodb/cachedb_mongodb.c
    M modules/cachedb_mongodb/cachedb_mongodb_dbase.c

  Log Message:
  -----------
  cachedb_mongodb: Allow specifying URL options

This patch allows script writers to append essential connect string
options near the end of a cachedb_mongodb URL, such as:

    * ?replSet=mongo-set-1
    * ?readConcernLevel=local

Consult the MongoDB connect string docs for a full listing of available
URL options.

Reported by Vasilios Tzanoudakis
Fixes #1656

(cherry picked from commit 887f9f0e032da4bf092540cb92369a6daee90ffa)





More information about the Devel mailing list