|
|
50dc83 |
From 9b94397a5a735910fab2a29670146a1feb6d890e Mon Sep 17 00:00:00 2001
|
|
|
50dc83 |
From: Mohammed Rafi KC <rkavunga@redhat.com>
|
|
|
50dc83 |
Date: Tue, 4 Jun 2019 11:13:50 +0530
|
|
|
50dc83 |
Subject: [PATCH 174/178] xlator/log: Add more logging in
|
|
|
50dc83 |
xlator_is_cleanup_starting
|
|
|
50dc83 |
|
|
|
50dc83 |
This patch will add two extra logs for invalid argument
|
|
|
50dc83 |
|
|
|
50dc83 |
> upstream patch : https://review.gluster.org/#/c/glusterfs/+/22810/
|
|
|
50dc83 |
|
|
|
50dc83 |
>Change-Id: I3950b4f4b9d88b1f1e788ef93d8f09d4bd8d4d8b
|
|
|
50dc83 |
>updates: bz#1703948
|
|
|
50dc83 |
>Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
|
|
|
50dc83 |
|
|
|
50dc83 |
Change-Id: I3950b4f4b9d88b1f1e788ef93d8f09d4bd8d4d8b
|
|
|
50dc83 |
BUG: 1703434
|
|
|
50dc83 |
Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
|
|
|
50dc83 |
Reviewed-on: https://code.engineering.redhat.com/gerrit/172800
|
|
|
50dc83 |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
50dc83 |
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
|
|
|
50dc83 |
---
|
|
|
50dc83 |
libglusterfs/src/xlator.c | 12 +++++++++---
|
|
|
50dc83 |
1 file changed, 9 insertions(+), 3 deletions(-)
|
|
|
50dc83 |
|
|
|
50dc83 |
diff --git a/libglusterfs/src/xlator.c b/libglusterfs/src/xlator.c
|
|
|
50dc83 |
index fbfbbe2..71e1ed4 100644
|
|
|
50dc83 |
--- a/libglusterfs/src/xlator.c
|
|
|
50dc83 |
+++ b/libglusterfs/src/xlator.c
|
|
|
50dc83 |
@@ -1494,12 +1494,18 @@ xlator_is_cleanup_starting(xlator_t *this)
|
|
|
50dc83 |
glusterfs_graph_t *graph = NULL;
|
|
|
50dc83 |
xlator_t *xl = NULL;
|
|
|
50dc83 |
|
|
|
50dc83 |
- if (!this)
|
|
|
50dc83 |
+ if (!this) {
|
|
|
50dc83 |
+ gf_msg("xlator", GF_LOG_WARNING, EINVAL, LG_MSG_INVALID_ARG,
|
|
|
50dc83 |
+ "xlator object is null, returning false");
|
|
|
50dc83 |
goto out;
|
|
|
50dc83 |
- graph = this->graph;
|
|
|
50dc83 |
+ }
|
|
|
50dc83 |
|
|
|
50dc83 |
- if (!graph)
|
|
|
50dc83 |
+ graph = this->graph;
|
|
|
50dc83 |
+ if (!graph) {
|
|
|
50dc83 |
+ gf_msg("xlator", GF_LOG_WARNING, EINVAL, LG_MSG_INVALID_ARG,
|
|
|
50dc83 |
+ "Graph is not set for xlator %s", this->name);
|
|
|
50dc83 |
goto out;
|
|
|
50dc83 |
+ }
|
|
|
50dc83 |
|
|
|
50dc83 |
xl = graph->first;
|
|
|
50dc83 |
if (xl && xl->cleanup_starting)
|
|
|
50dc83 |
--
|
|
|
50dc83 |
1.8.3.1
|
|
|
50dc83 |
|