Bug 9988: Check the merge limit in sub merge