[sr-dev] git:master:d4251378: memcached: updated to use xavp long value field

Daniel-Constantin Mierla miconda at gmail.com
Tue Nov 22 10:20:13 CET 2022


Module: kamailio
Branch: master
Commit: d4251378c701a46803e24df607c0959a2975fa7b
URL: https://github.com/kamailio/kamailio/commit/d4251378c701a46803e24df607c0959a2975fa7b

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-11-22T10:16:35+01:00

memcached: updated to use xavp long value field

---

Modified: src/modules/memcached/mcd_var.c

---

Diff:  https://github.com/kamailio/kamailio/commit/d4251378c701a46803e24df607c0959a2975fa7b.diff
Patch: https://github.com/kamailio/kamailio/commit/d4251378c701a46803e24df607c0959a2975fa7b.patch

---

diff --git a/src/modules/memcached/mcd_var.c b/src/modules/memcached/mcd_var.c
index 0a7cb8e9b2c..3c12e9c44fd 100644
--- a/src/modules/memcached/mcd_var.c
+++ b/src/modules/memcached/mcd_var.c
@@ -403,10 +403,10 @@ int pv_set_mcd_expire(struct sip_msg* msg, pv_param_t *param, int op, pv_value_t
 		goto errout;
 	}
 
-	LM_DBG("set expire time %d for key %.*s with flag %d\n", val->ri, key.len, key.s, return_flags);
+	LM_DBG("set expire time %ld for key %.*s with flag %d\n", val->ri, key.len, key.s, return_flags);
 
 	if ((rc= memcached_set(memcached_h, key.s, key.len, return_value, strlen(return_value), val->ri, return_flags)) != MEMCACHED_SUCCESS) {
-		LM_ERR("could not set expire time %d for key %.*s - error was %s\n", val->ri, key.len, key.s, memcached_strerror(memcached_h, rc));
+		LM_ERR("could not set expire time %ld for key %.*s - error was %s\n", val->ri, key.len, key.s, memcached_strerror(memcached_h, rc));
 		goto errout;
 	}
 




More information about the sr-dev mailing list