Skip to content

Commit

Permalink
os/newstore: tolerate null pnext to collection_list()
Browse files Browse the repository at this point in the history
Signed-off-by: Sage Weil <[email protected]>
  • Loading branch information
liewegas committed Sep 1, 2015
1 parent a1f0bdb commit 15382c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/os/newstore/NewStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1574,6 +1574,10 @@ int NewStore::collection_list(
const char *pend;
bool temp;

ghobject_t static_next;
if (!pnext)
pnext = &static_next;

if (start == ghobject_t::get_max())
goto out;
get_coll_key_range(cid, c->cnode.bits, &temp_start_key, &temp_end_key,
Expand Down

0 comments on commit 15382c5

Please sign in to comment.