summaryrefslogtreecommitdiffstats
path: root/xlators/mount/fuse/src/fuse-bridge.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/mount/fuse/src/fuse-bridge.c')
-rw-r--r--xlators/mount/fuse/src/fuse-bridge.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c
index 81fff39c124..82af5f526f5 100644
--- a/xlators/mount/fuse/src/fuse-bridge.c
+++ b/xlators/mount/fuse/src/fuse-bridge.c
@@ -4732,6 +4732,7 @@ fuse_graph_sync (xlator_t *this)
fuse_private_t *priv = NULL;
int need_first_lookup = 0;
int ret = 0;
+ int new_graph_id = 0;
xlator_t *old_subvol = NULL, *new_subvol = NULL;
uint64_t winds_on_old_subvol = 0;
@@ -4744,6 +4745,7 @@ fuse_graph_sync (xlator_t *this)
old_subvol = priv->active_subvol;
new_subvol = priv->active_subvol = priv->next_graph->top;
+ new_graph_id = priv->next_graph->id;
priv->next_graph = NULL;
need_first_lookup = 1;
@@ -4762,6 +4764,8 @@ unlock:
pthread_mutex_unlock (&priv->sync_mutex);
if (need_first_lookup) {
+ gf_log ("fuse", GF_LOG_INFO, "switched to graph %d",
+ new_graph_id);
fuse_first_lookup (this);
}
@@ -5167,9 +5171,6 @@ fuse_graph_setup (xlator_t *this, glusterfs_graph_t *graph)
prev_graph->top, NULL);
}
- gf_log ("fuse", GF_LOG_INFO, "switched to graph %d",
- ((graph) ? graph->id : 0));
-
return ret;
unlock:
pthread_mutex_unlock (&priv->sync_mutex);