Skip to content

Commit

Permalink
Use of copying instead of marshalling
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Nov 26, 2012
1 parent 7dfe93a commit 514ca00
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/org/jgroups/protocols/relay/RELAY2.java
Original file line number Diff line number Diff line change
Expand Up @@ -483,20 +483,6 @@ protected Message copy(Message msg) {
}


protected static byte[] marshal(Message msg) {
Message tmp=msg.copy(true, Global.BLOCKS_START_ID); // // we only copy headers from building blocks
// setting dest and src to null reduces the serialized size of the message; we'll set dest/src from the header later
tmp.setDest(null);
tmp.setSrc(null);
try {
return Util.streamableToByteBuffer(tmp);
}
catch(Throwable t) {
throw new RuntimeException("failed marshalling message " + msg, t);
}
}



protected void handleView(View view) {
Address old_coord=coord, new_coord=determineSiteMaster(view);
Expand Down

0 comments on commit 514ca00

Please sign in to comment.