summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Pandit <spandit@redhat.com>2013-10-30 14:00:18 +0530
committershishir gowda <sgowda@redhat.com>2013-11-15 14:45:13 +0530
commitb825cdd286f6fdc015b085079a1e554a6bfd407d (patch)
tree9ab97045d098c17c1e341154fdc9fe3da02a423f
parentce33e19de719a0454ff9ebe9acd264f0568c718e (diff)
snapcount in volinfo was not getting updated. Fixed it
Change-Id: Idafe3cdba149c2a66b89fb3fe0d4d3791d9d089c Signed-off-by: Sachin Pandit <spandit@redhat.com>
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-snapshot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-snapshot.c b/xlators/mgmt/glusterd/src/glusterd-snapshot.c
index c362456..ad0f5ff 100644
--- a/xlators/mgmt/glusterd/src/glusterd-snapshot.c
+++ b/xlators/mgmt/glusterd/src/glusterd-snapshot.c
@@ -706,7 +706,7 @@ glusterd_add_snap (glusterd_volinfo_t *volinfo, glusterd_snap_t *snap)
last = entry;
}
list_add_tail (&snap->snap_list, &volinfo->snaps);
-
+ volinfo->snap_count++;
gf_log (THIS->name, GF_LOG_DEBUG, "Snap %s added @ %"PRIu64,
snap->snap_name, count);
ret = 0;