From: Brad <bra...@us...> - 2005-11-19 01:07:33
|
Update of /cvsroot/archive-access/archive-access/projects/wayback/src/java/org/archive/wayback/cdx In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21377/src/java/org/archive/wayback/cdx Modified Files: BDBResourceIndex.java Log Message: TWEAK: added constant of BDB file max size to 256MB -- this should be configurable.. Index: BDBResourceIndex.java =================================================================== RCS file: /cvsroot/archive-access/archive-access/projects/wayback/src/java/org/archive/wayback/cdx/BDBResourceIndex.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** BDBResourceIndex.java 16 Nov 2005 03:11:30 -0000 1.1 --- BDBResourceIndex.java 19 Nov 2005 01:07:19 -0000 1.2 *************** *** 49,52 **** --- 49,53 ---- */ public class BDBResourceIndex { + private final static String JE_LOG_FILEMAX = "256000000"; private String path; *************** *** 80,83 **** --- 81,85 ---- environmentConfig.setAllowCreate(true); environmentConfig.setTransactional(false); + environmentConfig.setConfigParam("je.log.fileMax",JE_LOG_FILEMAX); File file = new File(path); env = new Environment(file, environmentConfig); *************** *** 86,89 **** --- 88,92 ---- databaseConfig.setTransactional(false); // perform other database configurations + db = env.openDatabase(null, dbName, databaseConfig); } |