[sr-dev] git:3.3: modules_k/pua: send_publish() doesn' t work correctly in DB only mode with certain DBs

Peter Dunkley peter.dunkley at crocodile-rcs.com
Thu Jun 14 18:45:50 CEST 2012


Module: sip-router
Branch: 3.3
Commit: 3a32ca895bf326bf16454705a294d17bd6a2f539
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=3a32ca895bf326bf16454705a294d17bd6a2f539

Author: Peter Dunkley <peter.dunkley at crocodile-rcs.com>
Committer: Peter Dunkley <peter.dunkley at crocodile-rcs.com>
Date:   Thu Jun 14 17:41:49 2012 +0100

modules_k/pua: send_publish() doesn't work correctly in DB only mode with certain DBs

- The pua record wasn't getting inserted in some cases
- Looks like I removed a couple of lines I shouldn't have when merging
  from Crocodile's internal SVN repository to git
- Issue found by Hugh Waite @ Crocodile RCS and fixed by Hugh Waite and
  Peter Dunkley @ Crocodile RCS
(cherry picked from commit 78da4d35dfceaa3d167d2b5ad66f1a27bc0f4628)

---

 modules_k/pua/pua_db.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules_k/pua/pua_db.c b/modules_k/pua/pua_db.c
index c064c25..05dd1e3 100644
--- a/modules_k/pua/pua_db.c
+++ b/modules_k/pua/pua_db.c
@@ -989,6 +989,9 @@ int update_record_puadb(ua_pres_t *pres, int expires, str *etag)
 		return -1;
 	}
 
+	if (pua_dbf.affected_rows != NULL)
+		return pua_dbf.affected_rows(pua_db);
+
 	return 1;
 }
 




More information about the sr-dev mailing list