diff options
Diffstat (limited to 'libglusterfs/src/graph.c')
| -rw-r--r-- | libglusterfs/src/graph.c | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/libglusterfs/src/graph.c b/libglusterfs/src/graph.c index 916942c3a2d..4c67f5661ff 100644 --- a/libglusterfs/src/graph.c +++ b/libglusterfs/src/graph.c @@ -1032,7 +1032,8 @@ out:  int -glusterfs_graph_attach (glusterfs_graph_t *orig_graph, char *path) +glusterfs_graph_attach (glusterfs_graph_t *orig_graph, char *path, +                        glusterfs_graph_t **newgraph)  {          xlator_t                *this   = THIS;          FILE                    *fp; @@ -1069,7 +1070,7 @@ glusterfs_graph_attach (glusterfs_graph_t *orig_graph, char *path)                  xl = FIRST_CHILD(xl);          }          graph->first = xl; - +        *newgraph = graph;          volfile_id = strstr (path, "/snaps/");          if (!volfile_id) {  | 
