Skip to content

Commit

Permalink
nfsv41: remove unused field in NFS4ProtocolInfo
Browse files Browse the repository at this point in the history
Acked-by: Gerd Behrmann
Target: master
Require-book: no
Require-notes: no
  • Loading branch information
kofemann committed Dec 19, 2013
1 parent 94030f5 commit 5967210
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
Expand Up @@ -380,7 +380,7 @@ public Layout layoutGet(CompoundContext context, Inode nfsInode, int ioMode, sta
} else {
final InetSocketAddress remote = context.getRpcCall().getTransport().getRemoteSocketAddress();
final PnfsId pnfsId = new PnfsId(inode.toString());
final NFS4ProtocolInfo protocolInfo = new NFS4ProtocolInfo(remote, stateid, new CellPath(getCellAddress()));
final NFS4ProtocolInfo protocolInfo = new NFS4ProtocolInfo(remote, stateid);

Transfer.initSession();
final NfsTransfer transfer = new NfsTransfer(_pnfsHandler,
Expand Down
@@ -1,15 +1,9 @@
package org.dcache.chimera.nfsv41.mover;

/*
* dCache specific part
*/

import java.net.InetSocketAddress;

import diskCacheV111.vehicles.IpProtocolInfo;

import dmg.cells.nucleus.CellPath;

import org.dcache.nfs.v4.xdr.stateid4;

public class NFS4ProtocolInfo implements IpProtocolInfo {
Expand All @@ -19,14 +13,11 @@ public class NFS4ProtocolInfo implements IpProtocolInfo {
private static final int _minor = 1;
private static final int _major = 4;
private final stateid4 _stateId;
private final CellPath _door;
private final InetSocketAddress _socketAddress;

public NFS4ProtocolInfo(InetSocketAddress clientSocketAddress,
stateid4 stateId, CellPath door) {
public NFS4ProtocolInfo(InetSocketAddress clientSocketAddress, stateid4 stateId) {
_stateId = stateId;
_socketAddress = clientSocketAddress;
_door = door;
}

//
Expand Down Expand Up @@ -56,10 +47,6 @@ public boolean isFileCheckRequired() {
return false;
}

public CellPath door() {
return _door;
}

public stateid4 stateId() {
return _stateId;
}
Expand Down

0 comments on commit 5967210

Please sign in to comment.