diff options
author | Mohammed Rafi KC <rkavunga@redhat.com> | 2015-03-12 12:09:06 +0530 |
---|---|---|
committer | Rajesh Joseph <rjoseph@redhat.com> | 2016-02-24 05:51:41 -0800 |
commit | 7a3644f367f1dae5caa098e28f3ee79a19720c1a (patch) | |
tree | 9c966e1d90d665e9c66671b49307df8c4021dbe7 /xlators/mgmt/glusterd | |
parent | ada8e004260ec755d9879219f7b3811d3e123bbf (diff) |
Snapshot:wrong logging is used
Backport of>
>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>
(cherry picked from commit 1fd7655ab0795e5aa96cdbfb8c522b222734f4f2)
Change-Id: If88fba2678ca831c019f960fd3814e238d365439
BUG: 1311043
Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
Reviewed-on: http://review.gluster.org/13495
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Smoke: Gluster Build System <jenkins@build.gluster.com>
CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Rajesh Joseph <rjoseph@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd')
-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 8ce6648dbcf..7718fb5d16d 100644 --- a/xlators/mgmt/glusterd/src/glusterd-snapshot.c +++ b/xlators/mgmt/glusterd/src/glusterd-snapshot.c @@ -4018,10 +4018,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)); |