public void releaseReplicaSyncPermits ( int permits ) { assert permits > 0 : "Invalid permits: " + permits ; replicaSyncSemaphore . release ( permits ) ; if ( logger . isFinestEnabled ( ) ) { logger . finest ( "Released " + permits + " replica sync permits. Available permits: " + replicaSyncSemaphore . availablePermits ( ) ) ; } assert availableReplicaSyncPermits ( ) <= maxParallelReplications : "Number of replica sync permits exceeded the configured number!" ; }
Releases the previously acquired permits .