public void endMakePrimary(long startTime, boolean timedOut, boolean failed) {
    long duration = getStatTime() - startTime;
    endClientOp(duration, timedOut, failed);
    stats.incInt(makePrimaryInProgressId, -1);
    int endMakePrimaryId;
    if (timedOut) {
      endMakePrimaryId = makePrimaryTimedOutId;
    } else if (failed) {
      endMakePrimaryId = makePrimaryFailedId;
    } else {
      endMakePrimaryId = makePrimaryId;
    }
    stats.incInt(endMakePrimaryId, 1);
    stats.incLong(makePrimaryDurationId, duration);
  }
Records that the specified makePrimary has ended

@param startTime the value returned by {@link #startMakePrimary}.
@param timedOut true if makePrimary timed out
@param failed true if makePrimary failed
geode-core/src/main/java/org/apache/geode/cache/client/internal/ConnectionStats.java