Follows-up 38a9f0a42a, which recently introduced a boolean
parameter here. Replace this with an integer constant so that
the intent is more explicit in the caller, and also makes the
implementation more future-proof.
Bug: T75181
Change-Id: I575ad8648ce3aa41cbe45cfa41e97d2acc29b402
* For some reason, deletion didn't go beyond the first batch in
beta. Simplifying the check, removing the reliance on affectedRows().
* If the last deletions were the same number as the batch size, the
script went for the second loop, feeding an empty array of IDs to
delete(), causing an exception.
Change-Id: Id793aeef0517041a0216110abd8b64ec85deff1e