Skip to content
Snippets Groups Projects
Verified Commit 094fb3b8 authored by Alberto Miranda's avatar Alberto Miranda ♨️
Browse files

Fix target lookup error in read() and write()

parent e3fc9839
No related branches found
No related tags found
2 merge requests!29Resolve "Replace Margo with Mercury in client code",!17Resolve "Replace Margo with Mercury in client code"
......@@ -121,8 +121,7 @@ ssize_t write(const string& path, const void* buf, const bool append_flag,
total_chunk_size -= chnk_rpad(offset + write_size, CHUNKSIZE);
}
auto endp = CTX->hosts2().at(
CTX->distributor()->locate_file_metadata(path));
auto endp = CTX->hosts2().at(target);
try {
......@@ -285,8 +284,7 @@ ssize_t read(const string& path, void* buf, const off64_t offset, const size_t r
total_chunk_size -= chnk_rpad(offset + read_size, CHUNKSIZE);
}
auto endp = CTX->hosts2().at(
CTX->distributor()->locate_file_metadata(path));
auto endp = CTX->hosts2().at(target);
try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment