REVIEW-2473 Fixed the logic that decided whether the next long running operation is reentrant or not. Should fix the build.