Exemple #1
0
  @Override
  public void endUpdate() {
    synchronized (this) {
      if (!inUpdate) error(EndUpdate, "endUpdate but not in update");
      if (inRead > 0) error(EndUpdate, "endUpdate when in read");

      checkEmpty("Outstanding read blocks at end of update operations", activeReadBlocks);

      checkEmpty("Outstanding write blocks at end of update operations", activeWriteBlocks);

      inUpdate = false;
      inRead = 0;
      clearInternalRW();
    }
    blockMgr.endUpdate();
  }