Module: kamailio
Branch: master
Commit: aa87b852fbfd333f2073ac7390c3f3b6568e0024
URL:
https://github.com/kamailio/kamailio/commit/aa87b852fbfd333f2073ac7390c3f3b…
Author: mikomarrache <mikomarrache(a)users.noreply.github.com>
Committer: mikomarrache <mikomarrache(a)users.noreply.github.com>
Date: 2015-04-22T15:04:40+03:00
db_mongodb: fix typo
---
Modified: modules/db_mongodb/mongodb_dbase.c
---
Diff:
https://github.com/kamailio/kamailio/commit/aa87b852fbfd333f2073ac7390c3f3b…
Patch:
https://github.com/kamailio/kamailio/commit/aa87b852fbfd333f2073ac7390c3f3b…
---
diff --git a/modules/db_mongodb/mongodb_dbase.c b/modules/db_mongodb/mongodb_dbase.c
index 8dd0313..7f14f29 100644
--- a/modules/db_mongodb/mongodb_dbase.c
+++ b/modules/db_mongodb/mongodb_dbase.c
@@ -470,7 +470,7 @@ int db_mongodb_get_columns(const db1_con_t* _h, db1_res_t* _r)
* \param _r database result set
* \return 0 on success, negative on failure
*/
-static int db_mongdob_convert_bson(const db1_con_t* _h, db1_res_t* _r,
+static int db_mongodb_convert_bson(const db1_con_t* _h, db1_res_t* _r,
int _row, const bson_t *_rdoc)
{
static str dummy_string = {"", 0};
@@ -619,7 +619,7 @@ static int db_mongdob_convert_bson(const db1_con_t* _h, db1_res_t*
_r,
* \param _r database result set
* \return 0 on success, negative on failure
*/
-static int db_mongdob_convert_result(const db1_con_t* _h, db1_res_t* _r)
+static int db_mongodb_convert_result(const db1_con_t* _h, db1_res_t* _r)
{
int row;
db_mongodb_result_t *mgres;
@@ -671,7 +671,7 @@ static int db_mongdob_convert_result(const db1_con_t* _h, db1_res_t*
_r)
LM_DBG("selected document: %s\n", jstr);
bson_free (jstr);
}
- if(db_mongdob_convert_bson(_h, _r, row, itdoc)) {
+ if(db_mongodb_convert_bson(_h, _r, row, itdoc)) {
LM_ERR("failed to convert bson at pos %d\n", row);
return -1;
}
@@ -739,7 +739,7 @@ static int db_mongodb_store_result(const db1_con_t* _h, db1_res_t**
_r)
LM_ERR("failed to set the columns\n");
goto error;
}
- if(db_mongdob_convert_result(_h, *_r)<0) {
+ if(db_mongodb_convert_result(_h, *_r)<0) {
LM_ERR("failed to set the rows in result\n");
goto error;
}