From: <tho...@us...> - 2013-12-16 18:09:13
|
Revision: 7662 http://bigdata.svn.sourceforge.net/bigdata/?rev=7662&view=rev Author: thompsonbry Date: 2013-12-16 18:09:07 +0000 (Mon, 16 Dec 2013) Log Message: ----------- Commented out broken decode to prevent false EOF Modified Paths: -------------- branches/MGC_1_3_0/bigdata/src/java/com/bigdata/ha/msg/HASendState.java Modified: branches/MGC_1_3_0/bigdata/src/java/com/bigdata/ha/msg/HASendState.java =================================================================== --- branches/MGC_1_3_0/bigdata/src/java/com/bigdata/ha/msg/HASendState.java 2013-12-16 18:06:19 UTC (rev 7661) +++ branches/MGC_1_3_0/bigdata/src/java/com/bigdata/ha/msg/HASendState.java 2013-12-16 18:09:07 UTC (rev 7662) @@ -205,24 +205,24 @@ * <code>null</code>. */ static public IHASendState decode(final byte[] a) throws IOException { + return null; +// if (a == null) +// return null; +// +// final HASendState tmp = new HASendState(); +// +// final DataInputBuffer dis = new DataInputBuffer(a); +// +// final long magic = dis.readLong(); +// +// if (magic != MAGIC) +// throw new IOException("Bad magic: expected=" + MAGIC + ", actual=" +// + magic); +// +// tmp.readExternal2(dis); +// +// return tmp; - if (a == null) - return null; - - final HASendState tmp = new HASendState(); - - final DataInputBuffer dis = new DataInputBuffer(a); - - final long magic = dis.readLong(); - - if (magic != MAGIC) - throw new IOException("Bad magic: expected=" + MAGIC + ", actual=" - + magic); - - tmp.readExternal2(dis); - - return tmp; - } @Override This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |