From ce4432adc67dc2fc06dd21ea08e59d179496bcc6 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Tue, 5 Mar 2013 15:49:26 -0800 Subject: [PATCH] HashIndex: _collection_list_partial must tolerate NULL next Backport: bobtail Fixes: #4379 Signed-off-by: Samuel Just Reviewed-by: Greg Farnum --- src/os/HashIndex.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/os/HashIndex.cc b/src/os/HashIndex.cc index a1d369d8e509f..b3902b056a55d 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 *ls, hobject_t *next) { vector 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); -- 2.39.5