In case insertions have occurred during the split that would
immediately take the new fragments over the split threshold.
Signed-off-by: John Spray <john.spray@redhat.com>
for (const auto &dir : resultfrags) {
dir->state_clear(CDir::STATE_FRAGMENTING);
dir->auth_unpin(this);
+
+ // In case the resulting fragments are beyond the split size,
+ // we might need to split them again right away (they could
+ // have been taking inserts between unfreezing and getting
+ // here)
+ mds->balancer->maybe_fragment(dir, false);
}
if (mds->logger) {