diff options
| -rw-r--r-- | xlators/protocol/client/src/client-handshake.c | 9 | 
1 files changed, 7 insertions, 2 deletions
diff --git a/xlators/protocol/client/src/client-handshake.c b/xlators/protocol/client/src/client-handshake.c index e1bcd4e1c..c8064ac83 100644 --- a/xlators/protocol/client/src/client-handshake.c +++ b/xlators/protocol/client/src/client-handshake.c @@ -1439,8 +1439,13 @@ client_setvolume (xlator_t *this, struct rpc_clnt *rpc)                  }          } -        ret = gf_asprintf (&process_uuid_xl, "%s-%s", this->ctx->process_uuid, -                           this->name); +        /* With multiple graphs possible in the same process, we need a +           field to bring the uniqueness. Graph-ID should be enough to get the +           job done +        */ +        ret = gf_asprintf (&process_uuid_xl, "%s-%s-%d", +                           this->ctx->process_uuid, this->name, +                           this->graph->id);          if (-1 == ret) {                  gf_log (this->name, GF_LOG_ERROR,                          "asprintf failed while setting process_uuid");  | 
