diff options
author | Raghavendra Bhat <raghavendra@redhat.com> | 2019-05-14 10:56:15 -0400 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2019-06-08 05:42:19 +0000 |
commit | 2ff76fa45c53b8e291cf70c98b28800f3ed5f6fc (patch) | |
tree | 4fcdb3a9618b33966e49881df2b7d1bb7dfec58c /xlators/features/snapview-server/src/snapview-server-mgmt.c | |
parent | fa32b594d12673698da0c1dab8491db8655b4d50 (diff) |
uss: Ensure that snapshot is deleted before creating a new snapshot
* Also some logging enhancements in snapview-server
Change-Id: I6a7646771cedf4bd1c62806eea69d720bbaf0c83
fixes: bz#1715921
Signed-off-by: Raghavendra Bhat <raghavendra@redhat.com>
Diffstat (limited to 'xlators/features/snapview-server/src/snapview-server-mgmt.c')
-rw-r--r-- | xlators/features/snapview-server/src/snapview-server-mgmt.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xlators/features/snapview-server/src/snapview-server-mgmt.c b/xlators/features/snapview-server/src/snapview-server-mgmt.c index bc415efb81d..17b3515e9a9 100644 --- a/xlators/features/snapview-server/src/snapview-server-mgmt.c +++ b/xlators/features/snapview-server/src/snapview-server-mgmt.c @@ -407,7 +407,12 @@ mgmt_get_snapinfo_cbk(struct rpc_req *req, struct iovec *iov, int count, if (old_dirents) { for (i = 0; i < oldcount; i++) { if (old_dirents[i].fs) - glfs_fini(old_dirents[i].fs); + gf_msg_debug(this->name, 0, + "calling glfs_fini on " + "name: %s, snap_volname: %s, uuid: %s", + old_dirents[i].name, old_dirents[i].snap_volname, + old_dirents[i].uuid); + glfs_fini(old_dirents[i].fs); } } |