Commit 28b5c214 authored by Marc Vef's avatar Marc Vef
Browse files

proxy create bug fix

parent b6d96be1
Loading
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -258,17 +258,18 @@ gkfs_create(const std::string& path, mode_t mode) {
    // if(check_parent_dir(path)) {
    //     return -1;
    // }
    int err = 0;
    if(gkfs::config::proxy::fwd_create && CTX->use_proxy()) {
        return gkfs::rpc::forward_create_proxy(path, mode);
        err = gkfs::rpc::forward_create_proxy(path, mode);
    } else {
        auto err = gkfs::rpc::forward_create(path, mode);
        err = gkfs::rpc::forward_create(path, mode);
    }
    if(err) {
        errno = err;
        return -1;
    }
    return 0;
}
}

/**
 * gkfs wrapper for unlink() system calls