Fixed a case when a single extra onode shard causes a flood of shard errors.
Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
++errors;
continue;
}
- while (expecting_shards.front() > it->key()) {
+ if (expecting_shards.front() > it->key()) {
derr << "fsck error: saw " << pretty_binary_string(it->key())
<< dendl;
derr << "fsck error: exp "
<< pretty_binary_string(expecting_shards.front()) << dendl;
++errors;
- expecting_shards.pop_front();
- if (expecting_shards.empty()) {
- break;
- }
}
continue;
}