Skip to content

key lost in this line when not exactly devided #185

@happynoom

Description

@happynoom

ps-lite/src/postoffice.cc

Lines 172 to 176 in 08fb534

for (int i = 0; i < num_servers_; ++i) {
server_key_ranges_.push_back(Range(
kMaxKey / num_servers_ * i,
kMaxKey / num_servers_ * (i+1)));
}

this may cause key lost when kMaxKey not exactly divided for the last range end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions