summaryrefslogtreecommitdiffstats
path: root/libglusterfsclient/src/libglusterfsclient.c
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfsclient/src/libglusterfsclient.c')
-rwxr-xr-xlibglusterfsclient/src/libglusterfsclient.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c
index 89c57182e..f5465c841 100755
--- a/libglusterfsclient/src/libglusterfsclient.c
+++ b/libglusterfsclient/src/libglusterfsclient.c
@@ -1506,6 +1506,12 @@ glusterfs_umount_all (void)
void
glusterfs_reset (void)
{
+ INIT_LIST_HEAD (&vmplist.list);
+ vmplist.entries = 0;
+
+ memset (&lock, 0, sizeof (lock));
+ pthread_mutex_init (&lock, NULL);
+
first_fini = first_init = 1;
}