The ndeleted stat is filled out twice. First, we set it to zero at the beginning of a delete op:
Then, we set it to the actual number of deleted documents at the end:
Setting the statistic to zero has the adverse consequence of causing the system to log/profile ndeleted:0 when the actual number of deleted documents is unknown. I believe this line of code is superfluous and can be removed.