Commit 3dc3f306 authored by Ramon Nou's avatar Ramon Nou
Browse files

corrected offset

parent 54f6969e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -904,7 +904,8 @@ forward_read(const string& path, void* buf, const off64_t offset,
                // Move recovered_chunk to the buffer, first and last chunk
                // should substract...
                auto recover_size = gkfs::config::rpc::chunksize;
                auto recover_offt = chnk_id_file * gkfs::config::rpc::chunksize;
                auto recover_offt = (chnk_id_file - chnk_start) *
                                    gkfs::config::rpc::chunksize;
                auto recover_offt_chunk = 0;

                if(chnk_id_file == chnk_start) {