summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-store.c
diff options
context:
space:
mode:
authorAvra Sengupta <asengupt@redhat.com>2013-11-19 04:48:37 +0000
committerAvra Sengupta <asengupt@redhat.com>2013-11-20 01:51:23 +0000
commitce5e67d497c036ffd0dd89a6ad2245a19ba47694 (patch)
treee55fc63bb7a135b437241db105826f83ca9dbe61 /xlators/mgmt/glusterd/src/glusterd-store.c
parentde39983493ce747c6696f1523db59bb67865b22a (diff)
glusterd/snapshot: Added trace statements and handled snapshot create commit failure.
Also handles empty string(not NULL) in gd_syncop_mgmt_brick_op() and adds "Snapshot" in operation list used for printing op during logging. Change-Id: Icac9dce6bf1c087ab2aace9953e2af3a0fb81be6 Signed-off-by: Avra Sengupta <asengupt@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-store.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-store.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-store.c b/xlators/mgmt/glusterd/src/glusterd-store.c
index 7ad63bde5..8a673ccbe 100644
--- a/xlators/mgmt/glusterd/src/glusterd-store.c
+++ b/xlators/mgmt/glusterd/src/glusterd-store.c
@@ -1455,9 +1455,11 @@ out:
gf_store_unlink_tmppath (volinfo->snap_list_shandle);
if (fd > 0)
close (fd);
- gf_log (THIS->name, GF_LOG_DEBUG, "Returning %d", ret);
+
+ gf_log (THIS->name, GF_LOG_TRACE, "Returning %d", ret);
return ret;
}
+
int32_t
glusterd_store_perform_snap_store (glusterd_volinfo_t *volinfo)
{
@@ -1513,7 +1515,8 @@ out:
gf_store_unlink_tmppath (volinfo->snap_list_shandle);
if (fd > 0)
close (fd);
- gf_log (THIS->name, GF_LOG_DEBUG, "Returning %d", ret);
+
+ gf_log ("", GF_LOG_TRACE, "Returning %d", ret);
return ret;
}