Skip to content

Commit

Permalink
Ensures all files are closed when running UnbindFromClusterCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalstain committed Dec 14, 2016
1 parent 1c69778 commit 8ca1a9f
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -102,16 +102,16 @@ public void execute( String[] args ) throws IncorrectUsage, CommandFailed
{
throw new IncorrectUsage( e.getMessage() );
}
catch ( UnbindFailureException | CannotWriteException e )
catch ( UnbindFailureException | CannotWriteException | IOException e )
{
throw new CommandFailed( "Unbind failed: " + e.getMessage(), e );
}
}

private void confirmTargetDirectoryIsWritable( Path pathToSpecificDatabase )
throws CommandFailed, CannotWriteException
throws CommandFailed, CannotWriteException, IOException
{
new StoreLockChecker().withLock( pathToSpecificDatabase );
new StoreLockChecker().withLock( pathToSpecificDatabase ).close();
}

private Path clusterStateFrom( Path target )
Expand Down

0 comments on commit 8ca1a9f

Please sign in to comment.