summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Just <sam.just@inktank.com>2013-03-05 15:49:26 -0800
committerSamuel Just <sam.just@inktank.com>2013-03-15 12:08:22 -0700
commit19f6df28337307ce6d8617524f88f222c0ffcab3 (patch)
treec452ab504d6da1201bd2af7012917781441827f6
parent1b5c1564bad3574db257cb17d48190958d870f51 (diff)
downloadceph-19f6df28337307ce6d8617524f88f222c0ffcab3.tar.gz
HashIndex: _collection_list_partial must tolerate NULL next
Backport: bobtail Fixes: #4379 Signed-off-by: Samuel Just <sam.just@inktank.com> Reviewed-by: Greg Farnum <greg@inktank.com> (cherry picked from commit ce4432adc67dc2fc06dd21ea08e59d179496bcc6)
-rw-r--r--src/os/HashIndex.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/os/HashIndex.cc b/src/os/HashIndex.cc
index d0d155c8d18..5e880e1e30a 100644
--- a/src/os/HashIndex.cc
+++ b/src/os/HashIndex.cc
@@ -328,6 +328,9 @@ int HashIndex::_collection_list_partial(const hobject_t &start,
vector<hobject_t> *ls,
hobject_t *next) {
vector<string> path;
+ hobject_t _next;
+ if (!next)
+ next = &_next;
*next = start;
dout(20) << "_collection_list_partial " << start << " " << min_count << "-" << max_count << " ls.size " << ls->size() << dendl;
return list_by_hash(path, min_count, max_count, seq, next, ls);