[OpenSIPS-Devel] [OpenSIPS/opensips] 62e4fd: cachedb_mongodb: Avoid redundant mongoc_init() cal...

Liviu Chircu liviu at opensips.org
Fri Aug 18 10:22:39 EDT 2017


  Branch: refs/heads/2.3
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 62e4fdf9ba85ad1c8f5152ee1d4bdecfb45ba7d3
      https://github.com/OpenSIPS/opensips/commit/62e4fdf9ba85ad1c8f5152ee1d4bdecfb45ba7d3
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2017-08-18 (Fri, 18 Aug 2017)

  Changed paths:
    M modules/cachedb_mongodb/cachedb_mongodb.c

  Log Message:
  -----------
  cachedb_mongodb: Avoid redundant mongoc_init() calls

mongoc_init() is using pthread_once() anyway, so we might as well
avoid calling it multiple times.

(cherry picked from commit 7a5e2c7b42e2680b6c1cea4481940061430c17eb)




More information about the Devel mailing list