diff options
Diffstat (limited to 'libglusterfs/src/xlator.c')
| -rw-r--r-- | libglusterfs/src/xlator.c | 7 | 
1 files changed, 6 insertions, 1 deletions
diff --git a/libglusterfs/src/xlator.c b/libglusterfs/src/xlator.c index 7b873fcc79d..341f1781b09 100644 --- a/libglusterfs/src/xlator.c +++ b/libglusterfs/src/xlator.c @@ -125,7 +125,12 @@ xlator_volopt_dynload (char *xlator_type, void **dl_handle,          GF_VALIDATE_OR_GOTO ("xlator", xlator_type, out); -        ret = gf_asprintf (&name, "%s/%s.so", XLATORDIR, xlator_type); +        /* socket.so doesn't fall under the default xlator directory, hence we +         * need this check */ +        if (!strstr(xlator_type, "rpc-transport")) +                ret = gf_asprintf (&name, "%s/%s.so", XLATORDIR, xlator_type); +        else +                ret = gf_asprintf (&name, "%s/%s.so", XLATORPARENTDIR, xlator_type);          if (-1 == ret) {                  gf_log ("xlator", GF_LOG_ERROR, "asprintf failed");                  goto out;  | 
