diff options
author | Mohammed Rafi KC <rkavunga@redhat.com> | 2015-03-12 12:09:06 +0530 |
---|---|---|
committer | Rajesh Joseph <rjoseph@redhat.com> | 2016-02-22 21:36:01 -0800 |
commit | 1fd7655ab0795e5aa96cdbfb8c522b222734f4f2 (patch) | |
tree | bcefedbbc6d74518e710b76ede33b492b46260c2 | |
parent | 27c09b9357004e5fdb02fdf0c586f3402878db1f (diff) |
Snapshot:wrong logging is used
Change-Id: I56e5f5696fbbb4290f95adb9b68f9e43ed037ed3
BUG: 1189473
Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
Reviewed-on: http://review.gluster.org/9861
Smoke: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Rajesh Joseph <rjoseph@redhat.com>
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-snapshot.c | 8 |
1 files changed, 4 insertions, 4 deletions
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)); |