From ede0d941777b1a1f9f6d38fce76a4890c8fb1040 Mon Sep 17 00:00:00 2001 From: Jianpeng Ma Date: Tue, 7 Nov 2017 22:42:59 +0800 Subject: [PATCH] os/filestore: remove redudant check. If next is null, we already set a non-null to it. So don't check again. Signed-off-by: Jianpeng Ma --- src/os/filestore/FileStore.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/filestore/FileStore.cc b/src/os/filestore/FileStore.cc index 35e99d667638a..cd45397383976 100644 --- a/src/os/filestore/FileStore.cc +++ b/src/os/filestore/FileStore.cc @@ -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; -- 2.39.5