geode-core/src/main/java/org/apache/geode/internal/cache/BackupLock.java
@Override
  public void lock() {
    // The backup thread is a noop; it does not need to get the lock since it is the only thread
    // with permission to modify disk files during backup
    if (!isCurrentThreadDoingBackup()) {
      super.lock();
      while (isBackingUp) {
        if (hook != null) {
          hook.beforeWaitForBackupCompletion();
        }
        backupDone.awaitUninterruptibly();
      }
    }
  }
/**
   * Acquire this lock, waiting for a backup to finish the first phase.
   * 
   */
Acquire this lock, waiting for a backup to finish the first phase.
Acquire this lock waiting for a backup to finish the first phase .
@Override
  public void lock() {
    if (!isCurrentThreadDoingBackup()) {
      super.lock();
      while (isBackingUp) {
        if (hook != null) {
          hook.beforeWaitForBackupCompletion();
        }
        backupDone.awaitUninterruptibly();
      }
    }
  }
@ Override public void lock ( ) { if ( ! isCurrentThreadDoingBackup ( ) ) { super . lock ( ) ; while ( isBackingUp ) { if ( hook != null ) { hook . beforeWaitForBackupCompletion ( ) ; } backupDone . awaitUninterruptibly ( ) ; } } }
Acquire this lock, waiting for a backup to finish the first phase.
Acquire this lock waiting for a backup to finish the first phase .
// The backup thread is a noop; it does not need to get the lock since it is the only thread // with permission to modify disk files during backup