From: <tho...@us...> - 2013-10-29 12:19:45
|
Revision: 7492 http://bigdata.svn.sourceforge.net/bigdata/?rev=7492&view=rev Author: thompsonbry Date: 2013-10-29 12:19:39 +0000 (Tue, 29 Oct 2013) Log Message: ----------- Added sort for the top-level arguments as well to force lexical visitation order for HALog files. Modified Paths: -------------- branches/BIGDATA_RELEASE_1_3_0/bigdata/src/java/com/bigdata/ha/halog/HALogReader.java Modified: branches/BIGDATA_RELEASE_1_3_0/bigdata/src/java/com/bigdata/ha/halog/HALogReader.java =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata/src/java/com/bigdata/ha/halog/HALogReader.java 2013-10-29 12:18:26 UTC (rev 7491) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata/src/java/com/bigdata/ha/halog/HALogReader.java 2013-10-29 12:19:39 UTC (rev 7492) @@ -406,6 +406,17 @@ */ public static void main(final String[] args) throws InterruptedException { + /* + * Sort into lexical order to force visitation in lexical order. + * + * Note: This should work under any OS. Files will be either directory + * names (3 digits) or filenames (21 digits plus the file extension). + * Thus the comparison centers numerically on the digits that encode + * either part of a commit counter (subdirectory) or an entire commit + * counter (HALog file). + */ + Arrays.sort(args); + final IBufferAccess buf = DirectBufferPool.INSTANCE.acquire(); try { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |