hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterRpcServices.java
/**
   * Turn on/off snapshot auto-cleanup based on TTL
   *
   * @param enabledNewVal Set to <code>true</code> to enable, <code>false</code> to disable
   * @param synchronous If <code>true</code>, it waits until current snapshot cleanup is completed,
   *   if outstanding
   * @return previous snapshot auto-cleanup mode
   */
Turn on/off snapshot auto-cleanup based on TTL
@param enabledNewVal Set to true to enable, false to disable
@param synchronous If true, it waits until current snapshot cleanup is completed,
if outstanding
@return previous snapshot auto-cleanup mode
Turn on / off snapshot auto - cleanup based on TTL @param enabledNewVal Set to true to enable false to disable @param synchronous If true it waits until current snapshot cleanup is completed if outstanding @return previous snapshot auto - cleanup mode
private synchronized boolean switchSnapshotCleanup(final boolean enabledNewVal,
    final boolean synchronous) {
    final boolean oldValue = master.snapshotCleanupTracker.isSnapshotCleanupEnabled();
    master.switchSnapshotCleanup(enabledNewVal, synchronous);
    LOG.info("{} Successfully set snapshot cleanup to {}", master.getClientIdAuditPrefix(),
      enabledNewVal);
    return oldValue;
  }
private synchronized boolean switchSnapshotCleanup ( final boolean enabledNewVal , final boolean synchronous ) { final boolean oldValue = master . snapshotCleanupTracker . isSnapshotCleanupEnabled ( ) ; master . switchSnapshotCleanup ( enabledNewVal , synchronous ) ; LOG . info ( "{} Successfully set snapshot cleanup to {}" , master . getClientIdAuditPrefix ( ) , enabledNewVal ) ; return oldValue ; }
Turn on/off snapshot auto-cleanup based on TTL
 @param enabledNewVal Set to <code>true</code> to enable, <code>false</code> to disable
 @param synchronous If <code>true</code>, it waits until current snapshot cleanup is completed,
   if outstanding
 @return previous snapshot auto-cleanup mode
Turn on / off snapshot auto - cleanup based on TTL @param enabledNewVal Set to <code > true< / code > to enable <code > false< / code > to disable @param synchronous If <code > true< / code > it waits until current snapshot cleanup is completed if outstanding @return previous snapshot auto - cleanup mode