Module: kamailio Branch: 4.4 Commit: 70a2ab1c64bc19d4b67e09b990b78a23593999ce URL: https://github.com/kamailio/kamailio/commit/70a2ab1c64bc19d4b67e09b990b78a23...
Author: jaybeepee jason.penton@gmail.com Committer: jaybeepee jason.penton@gmail.com Date: 2016-06-06T14:48:53+02:00
modules/ims_usrloc_scscf: do not use DB functions if db_mode not enabled.
(cherry picked from commit 06df7d591e56d48ddbc100e5be4dc917731fc1a4)
---
Modified: modules/ims_usrloc_scscf/impurecord.c
---
Diff: https://github.com/kamailio/kamailio/commit/70a2ab1c64bc19d4b67e09b990b78a23... Patch: https://github.com/kamailio/kamailio/commit/70a2ab1c64bc19d4b67e09b990b78a23...
---
diff --git a/modules/ims_usrloc_scscf/impurecord.c b/modules/ims_usrloc_scscf/impurecord.c index 9dd82ed..ceee7e5 100644 --- a/modules/ims_usrloc_scscf/impurecord.c +++ b/modules/ims_usrloc_scscf/impurecord.c @@ -332,6 +332,10 @@ static str rollback = str_init("ROLLBACK"); static str autocommit_on = str_init("SET AUTOCOMMIT=1");
static inline void start_dbtransaction() { + + if (db_mode == NO_DB) + return; + if (ul_dbf.raw_query(ul_dbh, &autocommit_off, NULL) < 0) { LM_ERR("could not " "set autocommit off!\n");