Skip to content

Commit

Permalink
Merge pull request #11898 from liewegas/wip-filestore-hashindex
Browse files Browse the repository at this point in the history
os/filestore/HashIndex: fix list_by_hash_* termination on reaching end

Reviewed-by: Samuel Just <sjust@redhat.com>
  • Loading branch information
liewegas committed Nov 12, 2016
2 parents 47a41cc + c518026 commit 2eaa9fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/os/filestore/HashIndex.cc
Expand Up @@ -1065,7 +1065,7 @@ int HashIndex::list_by_hash_bitwise(
}
if (cmp_bitwise(j->second, end) >= 0) {
if (next)
*next = ghobject_t::get_max();
*next = j->second;
return 0;
}
if (!next || cmp_bitwise(j->second, *next) >= 0) {
Expand Down Expand Up @@ -1131,7 +1131,7 @@ int HashIndex::list_by_hash_nibblewise(
}
if (cmp_nibblewise(j->second, end) >= 0) {
if (next)
*next = ghobject_t::get_max();
*next = j->second;
return 0;
}
if (!next || cmp_nibblewise(j->second, *next) >= 0) {
Expand Down

0 comments on commit 2eaa9fa

Please sign in to comment.