CDir::map_t::iterator p = items.begin();
while (p != items.end()) {
CDentry *dn = p->second;
- p++;
+ ++p;
if (dn->get_linkage()->is_null() && !dn->is_projected())
remove_dentry(dn);
}
CDir::map_t::iterator p = items.begin();
while (p != items.end()) {
CDentry *dn = p->second;
- p++;
+ ++p;
if (dn->last == CEPH_NOSNAP)
continue;
int stale_rstat = 0;
int stale_fragstat = 0;
- for (list<CDir*>::iterator p = subs.begin(); p != subs.end(); p++) {
+ for (list<CDir*>::iterator p = subs.begin(); p != subs.end(); ++p) {
CDir *dir = *p;
dout(10) << " subfrag " << dir->get_frag() << " " << *dir << dendl;
assert(!dir->is_auth() || dir->is_complete() || replay);
map_t::iterator p = items.begin();
while (p != items.end() && bl.length() < max_write_size) {
CDentry *dn = p->second;
- p++;
+ ++p;
if (dn->linkage.is_null())
continue; // skip negative entries
for (map_t::iterator it = items.begin();
it != items.end(); ) {
CDentry *dn = it->second;
- it++;
+ ++it;
// inode?
if (dn->linkage.is_primary()) {
for (map_t::iterator it = items.begin();
it != items.end();
- it++) {
+ ++it) {
CDentry *dn = it->second;
if (dn->is_null())
continue;