[sr-dev] [kamailio/kamailio] p_usrloc: new parameter "mdb_availability_control" has been created. (#1529)

Lucian Balaceanu notifications at github.com
Mon May 21 19:02:35 CEST 2018


lbalaceanu commented on this pull request.

I will continue the review tomorrow.

> @@ -307,6 +309,13 @@ static int mod_init(void)
 	}
 #endif
 
+	if((write_on_master_db_shared = shm_malloc(sizeof(dbm_write_t))) == NULL) {

Make sure to shm_free this allocated memory.

> @@ -123,5 +123,11 @@ extern int connection_expires;
 extern int alg_location;
 
 extern int  max_loc_nr;
+typedef struct dbm_write {

Structure name must be a noun.

> @@ -96,7 +96,10 @@ void check_dbs(unsigned int ticks, void *param){
 	ul_db_handle_list_t * tmp2, * new_element;
 	int found;
 	int i;
-	
+
+	if(mdb_availability_control) {

mdb_availability_control is also checked inside check_master_db() function.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1529#pullrequestreview-121849062
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20180521/4aba9b00/attachment.html>


More information about the sr-dev mailing list