Skip to content

Commit

Permalink
os/filestore: remove redudant check.
Browse files Browse the repository at this point in the history
If next is null, we already set a non-null to it. So don't check again.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
  • Loading branch information
majianpeng committed Nov 7, 2017
1 parent 293306e commit 883f143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/os/filestore/FileStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5024,7 +5024,7 @@ int FileStore::collection_list(const coll_t& c,
dout(20) << "objects: " << *ls << dendl;

// HashIndex doesn't know the pool when constructing a 'next' value
if (next && !next->is_max()) {
if (!next->is_max()) {
next->hobj.pool = pool;
next->set_shard(shard);
dout(20) << " next " << *next << dendl;
Expand Down

0 comments on commit 883f143

Please sign in to comment.