[OpenSIPS-Devel] [OpenSIPS/opensips] 9d8286: cachedb_mongodb: Allow specifying URL options

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


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 9d82861708457b337d74c43a145a05b5a668d6fb
      https://github.com/OpenSIPS/opensips/commit/9d82861708457b337d74c43a145a05b5a668d6fb
  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