private void updateOplogEntryId(long v) {
    long curVal;
    do {
      curVal = oplogEntryId.get();
      if (curVal >= v) {
        // no need to set
        return;
      }
    } while (!oplogEntryId.compareAndSet(curVal, v));
  }
Sets the last created oplogEntryId to the given value if and only if the given value is greater
than the current last created oplogEntryId
geode-core/src/main/java/org/apache/geode/internal/cache/PersistentOplogSet.java