diff options
| -rw-r--r-- | libglusterfs/src/xlator.c | 12 | 
1 files changed, 9 insertions, 3 deletions
diff --git a/libglusterfs/src/xlator.c b/libglusterfs/src/xlator.c index 526cd2e2e4d..8df45beb9a3 100644 --- a/libglusterfs/src/xlator.c +++ b/libglusterfs/src/xlator.c @@ -1516,12 +1516,18 @@ xlator_is_cleanup_starting(xlator_t *this)      glusterfs_graph_t *graph = NULL;      xlator_t *xl = NULL; -    if (!this) +    if (!this) { +        gf_msg("xlator", GF_LOG_WARNING, EINVAL, LG_MSG_INVALID_ARG, +               "xlator object is null, returning false");          goto out; -    graph = this->graph; +    } -    if (!graph) +    graph = this->graph; +    if (!graph) { +        gf_msg("xlator", GF_LOG_WARNING, EINVAL, LG_MSG_INVALID_ARG, +               "Graph is not set for xlator %s", this->name);          goto out; +    }      xl = graph->first;      if (xl && xl->cleanup_starting)  | 
