Function gkfs::rpc::forward_remove
Defined in File forward_metadata.cpp
Function Documentation
-
int gkfs::rpc::forward_remove(const std::string &path)
Send an RPC for a remove request. This removes metadata and all data chunks possible distributed across many daemons. Optimizations are in place for small files (file_size / chunk_size) < number_of_daemons where no broadcast to all daemons is used to remove all chunks. Otherwise, a broadcast to all daemons is used.
This function only attempts data removal if data exists (determined when metadata is removed)
- Parameters
path –
- Returns
error code