summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src')
-rw-r--r--libglusterfs/src/client_t.c6
-rw-r--r--libglusterfs/src/fd.c2
-rw-r--r--libglusterfs/src/inode.c2
-rw-r--r--libglusterfs/src/stack.c1
-rw-r--r--libglusterfs/src/xlator.c1
5 files changed, 0 insertions, 12 deletions
diff --git a/libglusterfs/src/client_t.c b/libglusterfs/src/client_t.c
index eb9e7a78b22..844acbc459c 100644
--- a/libglusterfs/src/client_t.c
+++ b/libglusterfs/src/client_t.c
@@ -598,12 +598,9 @@ client_ctx_del (client_t *client, void *key, void **value)
void
client_dump (client_t *client, char *prefix)
{
- char key[GF_DUMP_MAX_BUF_LEN];
-
if (!client)
return;
- memset(key, 0, sizeof key);
gf_proc_dump_write("refcount", GF_PRI_ATOMIC,
GF_ATOMIC_GET (client->count));
}
@@ -641,7 +638,6 @@ clienttable_dump (clienttable_t *clienttable, char *prefix)
"Unable to acquire lock");
return;
}
- memset(key, 0, sizeof key);
gf_proc_dump_build_key(key, prefix, "maxclients");
gf_proc_dump_write(key, "%d", clienttable->max_clients);
gf_proc_dump_build_key(key, prefix, "first_free");
@@ -792,7 +788,6 @@ gf_client_dump_fdtables (xlator_t *this)
clienttable->cliententries[count].next_free)
continue;
client = clienttable->cliententries[count].client;
- memset(key, 0, sizeof key);
if (client->client_uid) {
gf_proc_dump_build_key (key, "conn",
"%d.id", count);
@@ -929,7 +924,6 @@ gf_client_dump_inodes (xlator_t *this)
clienttable->cliententries[count].next_free)
continue;
client = clienttable->cliententries[count].client;
- memset(key, 0, sizeof key);
if (client->bound_xl && client->bound_xl->itable) {
/* Presently every brick contains only
* one bound_xl for all connections.
diff --git a/libglusterfs/src/fd.c b/libglusterfs/src/fd.c
index 01e292cc107..ee14dc8fe43 100644
--- a/libglusterfs/src/fd.c
+++ b/libglusterfs/src/fd.c
@@ -1032,7 +1032,6 @@ fd_dump (fd_t *fd, char *prefix)
if (!fd)
return;
- memset(key, 0, sizeof(key));
gf_proc_dump_write("pid", "%llu", fd->pid);
gf_proc_dump_write("refcount", "%d", fd->refcount);
gf_proc_dump_write("flags", "%d", fd->flags);
@@ -1074,7 +1073,6 @@ fdtable_dump (fdtable_t *fdtable, char *prefix)
if (ret)
goto out;
- memset(key, 0, sizeof(key));
gf_proc_dump_build_key(key, prefix, "refcount");
gf_proc_dump_write(key, "%d", fdtable->refcount);
gf_proc_dump_build_key(key, prefix, "maxfds");
diff --git a/libglusterfs/src/inode.c b/libglusterfs/src/inode.c
index 11814d52d7c..70909bf596f 100644
--- a/libglusterfs/src/inode.c
+++ b/libglusterfs/src/inode.c
@@ -2331,7 +2331,6 @@ inode_dump (inode_t *inode, char *prefix)
if (!inode)
return;
- memset(key, 0, sizeof(key));
INIT_LIST_HEAD (&fd_list);
ret = TRY_LOCK(&inode->lock);
@@ -2406,7 +2405,6 @@ inode_table_dump (inode_table_t *itable, char *prefix)
if (!itable)
return;
- memset(key, 0, sizeof(key));
ret = pthread_mutex_trylock(&itable->lock);
if (ret != 0) {
diff --git a/libglusterfs/src/stack.c b/libglusterfs/src/stack.c
index 13107e4e3bc..2987441bb6d 100644
--- a/libglusterfs/src/stack.c
+++ b/libglusterfs/src/stack.c
@@ -97,7 +97,6 @@ gf_proc_dump_call_frame (call_frame_t *call_frame, const char *key_buf,...)
GF_ASSERT (key_buf);
- memset(&my_frame, 0, sizeof(my_frame));
va_start(ap, key_buf);
vsnprintf(prefix, GF_DUMP_MAX_BUF_LEN, key_buf, ap);
va_end(ap);
diff --git a/libglusterfs/src/xlator.c b/libglusterfs/src/xlator.c
index cd71d5fe384..22e3e041fd9 100644
--- a/libglusterfs/src/xlator.c
+++ b/libglusterfs/src/xlator.c
@@ -812,7 +812,6 @@ xlator_mem_acct_init (xlator_t *xl, int num_types)
if (!xl->mem_acct) {
return -1;
}
- memset (xl->mem_acct, 0, sizeof(struct mem_acct));
xl->mem_acct->num_types = num_types;
GF_ATOMIC_INIT (xl->mem_acct->refcnt, 1);