private boolean verifyLimit(Collection result, int limit, ExecutionContext context) {
      if (limit > 0) {
        if (!context.isDistinct()) {
          return result.size() == limit;
        } else
          return result.size() == limit;
      }
      return false;
    }
We do NOT use any locks here as every remove is for a RegionEntry which is locked before
coming here. No two threads can be entering in this method together for a RegionEntry.
geode-core/src/main/java/org/apache/geode/cache/query/internal/index/AbstractIndex.java