summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-snapshot.c
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendra@redhat.com>2014-01-28 22:58:27 +0530
committerRajesh Joseph <rjoseph@redhat.com>2014-02-02 20:58:12 -0800
commitaa53d35780a2b742a66c6b690d1d20dc173168cf (patch)
tree4564be32e7273868be33f1bdf3c4db8463111a3a /xlators/mgmt/glusterd/src/glusterd-snapshot.c
parent56b8ed7592e53226e356bced53147d365c5024e6 (diff)
mgmt/glusterd: perform store on only newly created snapshot
* Instead performing store on all the snaps of the volume when a new snap is created, store only the new snap's info. Otherwise with more and more snapshots in the volume, time creation for new snapshot becomes very large as glusterd has to store all the snapshots related info everytime (that too by doing fsyncs) Change-Id: I0e005d1d4c044b07a8abde8e6ba55e66a1bbd590 BUG: 1059146 Signed-off-by: Raghavendra Bhat <raghavendra@redhat.com> Reviewed-on: http://review.gluster.org/6841 Reviewed-by: Rajesh Joseph <rjoseph@redhat.com> Tested-by: Rajesh Joseph <rjoseph@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-snapshot.c')
-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 b8ecb61c2..db1afd37b 100644
--- a/xlators/mgmt/glusterd/src/glusterd-snapshot.c
+++ b/xlators/mgmt/glusterd/src/glusterd-snapshot.c
@@ -3166,7 +3166,7 @@ glusterd_do_snap (glusterd_volinfo_t *volinfo, char *snapname, dict_t *dict,
goto out;
}
- ret = glusterd_store_perform_snap_store (volinfo);
+ ret = glusterd_store_perform_snap_store (volinfo, snapname);
if (ret) {
gf_log (this->name, GF_LOG_WARNING, "could not do volume store"
" after taking the snapshot (volume: %s)",