Skip to content

Commit ac30518

Browse files
committed
mds/MDCache: remove unnecessary empty() check
Signed-off-by: Max Kellermann <[email protected]>
1 parent e4b2767 commit ac30518

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/mds/MDCache.cc

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12753,13 +12753,11 @@ void MDCache::show_subtrees(int dbl, bool force_print)
1275312753
seen.insert(dir);
1275412754

1275512755
// nested items?
12756-
if (!subtrees[dir].empty()) {
12757-
for (set<CDir*>::iterator p = subtrees[dir].begin();
12758-
p != subtrees[dir].end();
12759-
++p) {
12760-
//dout(25) << " saw sub " << **p << dendl;
12761-
q.push_front(pair<CDir*,int>(*p, d+1));
12762-
}
12756+
for (set<CDir*>::iterator p = subtrees[dir].begin();
12757+
p != subtrees[dir].end();
12758+
++p) {
12759+
//dout(25) << " saw sub " << **p << dendl;
12760+
q.push_front(pair<CDir*,int>(*p, d+1));
1276312761
}
1276412762
}
1276512763

0 commit comments

Comments
 (0)