From 1fd7655ab0795e5aa96cdbfb8c522b222734f4f2 Mon Sep 17 00:00:00 2001 From: Mohammed Rafi KC Date: Thu, 12 Mar 2015 12:09:06 +0530 Subject: Snapshot:wrong logging is used Change-Id: I56e5f5696fbbb4290f95adb9b68f9e43ed037ed3 BUG: 1189473 Signed-off-by: Mohammed Rafi KC Reviewed-on: http://review.gluster.org/9861 Smoke: Gluster Build System Reviewed-by: Kaleb KEITHLEY NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Rajesh Joseph --- xlators/mgmt/glusterd/src/glusterd-snapshot.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xlators') diff --git a/xlators/mgmt/glusterd/src/glusterd-snapshot.c b/xlators/mgmt/glusterd/src/glusterd-snapshot.c index e2b0ea21501..328e4aab120 100644 --- a/xlators/mgmt/glusterd/src/glusterd-snapshot.c +++ b/xlators/mgmt/glusterd/src/glusterd-snapshot.c @@ -4013,10 +4013,10 @@ glusterd_handle_snapshot_create (rpcsvc_request_t *req, glusterd_op_t op, } timestamp = dict_get_str_boolean (dict, "no-timestamp", _gf_false); - if (ret) { - gf_msg_debug (this->name, 0, "no-timestamp flag " - "is not set"); - goto out; + if (timestamp == -1) { + gf_log (this->name, GF_LOG_ERROR, "Failed to get " + "no-timestamp flag "); + goto out; } ret = dict_set_int64 (dict, "snap-time", (int64_t)time(&snap_time)); -- cgit