From cc4fa72926f9ac517365d91ae6144530dc67c001 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Wed, 16 Oct 2013 18:18:04 +0530 Subject: mgmt/glusterd: snapshot create command This is still a work in progress. As of now, these things are done: * Take the snapshot of the backend brick * Create the new volume for the snapshot * Create the brick and the client volfiles * Store the snapshot related info in /var/lib/glusterd * Create the snap object representing the snapshot TODO: Start the brick processes for the snapshot Change-Id: I26fbb0f8e5cf004d4c1dbca51819bab1cd1bac15 Signed-off-by: Raghavendra Bhat --- libglusterfs/src/store.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libglusterfs') diff --git a/libglusterfs/src/store.c b/libglusterfs/src/store.c index 48c79ee02..55027fa9b 100644 --- a/libglusterfs/src/store.c +++ b/libglusterfs/src/store.c @@ -596,7 +596,9 @@ gf_store_iter_get_matching (gf_store_iter_t *iter, char *key, char **value) goto out; } GF_FREE (tmp_key); + tmp_key = NULL; GF_FREE (tmp_value); + tmp_value = NULL; ret = gf_store_iter_get_next (iter, &tmp_key, &tmp_value, NULL); } -- cgit