/**
   * Get a non-transactional locker for internal database operations. Always non replicated.
   *
   * <p>This method is not called for user txns and should not throw a Java runtime exception
   * (IllegalArgument, etc).
   */
  public static Locker getInternalReadOperationLocker(EnvironmentImpl envImpl) {

    return BasicLocker.createBasicLocker(envImpl);
  }
Example #2
0
  /** Forwards this call to the base class and to the buddy locker. */
  public void releaseNonTxnLocks() throws DatabaseException {

    super.releaseNonTxnLocks();
    buddy.releaseNonTxnLocks();
  }