Skip to content

Commit

Permalink
nfs4: shutdown state handler on destroy
Browse files Browse the repository at this point in the history
for graceful dcache shutdown

Target: master, 2.10
Acked-By: Paul Millar
Require-book: no
Require-notes: no
  • Loading branch information
kofemann committed Oct 14, 2014
1 parent bc0e891 commit 55eb29f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,9 @@ public void init() throws Exception {
public void destroy() throws IOException {
_loginBrokerHandler.stop();
_rpcService.stop();
if (_nfs4 != null) {
_nfs4.getStateHandler().shutdown();
}
if(_proxyIoFactory != null) {
_proxyIoFactory.cleanUp();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public void setPostTransferService(PostTransferService postTransferService) {

public void shutdown() throws IOException {
_nfsIO.shutdown();
_nfsIO.getNFSServer().getStateHandler().shutdown();
}

@Override
Expand Down

0 comments on commit 55eb29f

Please sign in to comment.