Verified Commit 5606451a authored by Marc Vef's avatar Marc Vef
Browse files

distributor: Move small data to where metadata is

parent cd47567e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -31,7 +31,11 @@ SimpleHashDistributor::localhost() const {
host_t
SimpleHashDistributor::locate_data(const string& path,
                                   const chunkid_t& chnk_id) const {
    if(path[1] == 'm')
        return str_hash(path) % hosts_size_;
    return str_hash(path + ::to_string(chnk_id)) % hosts_size_;
    // auto locate = path + ::to_string(chnk_id);
    // return str_hash(locate) % hosts_size_;
}

host_t