]> git.saurik.com Git - redis.git/blobdiff - src/sds.c
List connected slaves with ip,port,state information in INFO, as requested by github...
[redis.git] / src / sds.c
index c3a0ccb978ae92b56a69a5c9d9964ba69784fc0a..b6c2aaf3ef70ae49d5b154dd64c8114167fc2416 100644 (file)
--- a/src/sds.c
+++ b/src/sds.c
@@ -196,6 +196,10 @@ sds sdscat(sds s, char *t) {
     return sdscatlen(s, t, strlen(t));
 }
 
+sds sdscatsds(sds s, sds t) {
+    return sdscatlen(s, t, sdslen(t));
+}
+
 sds sdscpylen(sds s, char *t, size_t len) {
     struct sdshdr *sh = (void*) (s-(sizeof(struct sdshdr)));
     size_t totlen = sh->free+sh->len;