Verified Commit d6b34b43 authored by Marc Vef's avatar Marc Vef
Browse files

Adding proxy operation to remove directory

parent 38f11342
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1347,7 +1347,11 @@ gkfs_rmdir(const std::string& path) {
        errno = ENOTEMPTY;
        return -1;
    }
    if(gkfs::config::proxy::fwd_remove && CTX->use_proxy()) {
        err = gkfs::rpc::forward_remove_proxy(path);
    } else {
        err = gkfs::rpc::forward_remove(path, CTX->get_replicas());
    }
    if(err) {
        errno = err;
        return -1;