1+ diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c
2+ index e2c963aac38..d6633875fb3 100644
3+ --- a/xlators/mount/fuse/src/fuse-bridge.c
4+ +++ b/xlators/mount/fuse/src/fuse-bridge.c
5+ @@ -6486,6 +6486,7 @@ notify(xlator_t *this, int32_t event, void *data, ...)
6+ int32_t ret = 0;
7+ fuse_private_t *private = NULL;
8+ gf_boolean_t start_thread = _gf_false;
9+ + gf_boolean_t event_graph = _gf_true;
10+ glusterfs_graph_t *graph = NULL;
11+ struct pollfd pfd = {0};
12+
13+ @@ -6493,9 +6494,6 @@ notify(xlator_t *this, int32_t event, void *data, ...)
14+
15+ graph = data;
16+
17+ - gf_log("fuse", GF_LOG_DEBUG, "got event %d on graph %d", event,
18+ - ((graph) ? graph->id : 0));
19+ -
20+ switch (event) {
21+ case GF_EVENT_GRAPH_NEW:
22+ break;
23+ @@ -6581,9 +6579,19 @@ notify(xlator_t *this, int32_t event, void *data, ...)
24+ }
25+
26+ default:
27+ + /* Set the event_graph to false so that event
28+ + debug msg would not try to access invalid graph->id
29+ + while data object is not matched to graph object
30+ + for ex in case of upcall event data object represents
31+ + gf_upcall object
32+ + */
33+ + event_graph = _gf_false;
34+ break;
35+ }
36+
37+ + gf_log("fuse", GF_LOG_DEBUG, "got event %d on graph %d", event,
38+ + ((graph && event_graph) ? graph->id : -1));
39+ +
40+ return ret;
41+ }
42+
0 commit comments