Module: kamailio
Branch: master
Commit: 4dbff66fff81f929118f18338f0a57fac674d4f9
URL:
https://github.com/kamailio/kamailio/commit/4dbff66fff81f929118f18338f0a57f…
Author: Luis Azedo <luis.azedo(a)factorlusitano.com>
Committer: Luis Azedo <luis.azedo(a)factorlusitano.com>
Date: 2015-06-11T17:16:09+01:00
db_text : only mark changed if there was a real change
---
Modified: modules/db_text/dbt_base.c
---
Diff:
https://github.com/kamailio/kamailio/commit/4dbff66fff81f929118f18338f0a57f…
Patch:
https://github.com/kamailio/kamailio/commit/4dbff66fff81f929118f18338f0a57f…
---
diff --git a/modules/db_text/dbt_base.c b/modules/db_text/dbt_base.c
index 7ca4563..6d70ce5 100644
--- a/modules/db_text/dbt_base.c
+++ b/modules/db_text/dbt_base.c
@@ -503,7 +503,8 @@ int dbt_delete(db1_con_t* _h, db_key_t* _k, db_op_t* _o, db_val_t* _v,
int _n)
_drp = _drp0;
}
- dbt_table_update_flags(_tbc, DBT_TBFL_MODI, DBT_FL_SET, 1);
+ if( ((dbt_con_p)_h->tail)->affected )
+ dbt_table_update_flags(_tbc, DBT_TBFL_MODI, DBT_FL_SET, 1);
/* dbt_print_table(_tbc, NULL); */
@@ -587,7 +588,8 @@ int dbt_update(db1_con_t* _h, db_key_t* _k, db_op_t* _o, db_val_t*
_v,
_drp = _drp->next;
}
- dbt_table_update_flags(_tbc, DBT_TBFL_MODI, DBT_FL_SET, 1);
+ if( ((dbt_con_p)_h->tail)->affected )
+ dbt_table_update_flags(_tbc, DBT_TBFL_MODI, DBT_FL_SET, 1);
/* dbt_print_table(_tbc, NULL); */