Skip to content

Commit

Permalink
adapt 3eab402 to 2.11 branch code
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryLitvintsev committed Feb 4, 2016
1 parent 9115ff4 commit 8074557
Showing 1 changed file with 12 additions and 2 deletions.
Expand Up @@ -73,6 +73,8 @@ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
import diskCacheV111.vehicles.PoolManagerGetPoolMonitor;
import diskCacheV111.vehicles.ProtocolInfo;

import dmg.cells.nucleus.NoRouteToCellException;

import org.dcache.acl.enums.AccessMask;
import org.dcache.cells.CellStub;
import org.dcache.namespace.FileAttribute;
Expand Down Expand Up @@ -137,7 +139,11 @@ public void pin(String pnfsid, long lifetime) throws ChimeraFsException {
PinManagerPinMessage message
= new PinManagerPinMessage(attributes, protocolInfo, null, lifetime);

pinManagerStub.notify(message);
try {
pinManagerStub.notify(message);
} catch (NoRouteToCellException t) {
throw new ChimeraFsException("pin", t);
}
}

/**
Expand All @@ -149,7 +155,11 @@ public void unpin(String pnfsid) throws ChimeraFsException {
PinManagerUnpinMessage message
= new PinManagerUnpinMessage(new PnfsId(pnfsid));

pinManagerStub.notify(message);
try {
pinManagerStub.notify(message);
} catch (NoRouteToCellException t) {
throw new ChimeraFsException("unpin", t);
}
}

/**
Expand Down

0 comments on commit 8074557

Please sign in to comment.