提交 11a00261 authored 作者: Thomas Mueller's avatar Thomas Mueller

A persistent multi-version map: prepare initial release

上级 871b0a8e
...@@ -555,120 +555,120 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1` ...@@ -555,120 +555,120 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
beforeTest(); beforeTest();
// db // db
// new TestScriptSimple().runTest(this); new TestScriptSimple().runTest(this);
// new TestScript().runTest(this); new TestScript().runTest(this);
// new TestAlter().runTest(this); new TestAlter().runTest(this);
// new TestAlterSchemaRename().runTest(this); new TestAlterSchemaRename().runTest(this);
// new TestAutoRecompile().runTest(this); new TestAutoRecompile().runTest(this);
// new TestBitField().runTest(this); new TestBitField().runTest(this);
// new TestBackup().runTest(this); new TestBackup().runTest(this);
// new TestBigDb().runTest(this); new TestBigDb().runTest(this);
// new TestBigResult().runTest(this); new TestBigResult().runTest(this);
// new TestCases().runTest(this); new TestCases().runTest(this);
// new TestCheckpoint().runTest(this); new TestCheckpoint().runTest(this);
// new TestCluster().runTest(this); new TestCluster().runTest(this);
// new TestCompatibility().runTest(this); new TestCompatibility().runTest(this);
// new TestCsv().runTest(this); new TestCsv().runTest(this);
// new TestDateStorage().runTest(this); new TestDateStorage().runTest(this);
// new TestDeadlock().runTest(this); new TestDeadlock().runTest(this);
// new TestEncryptedDb().runTest(this); new TestEncryptedDb().runTest(this);
// new TestExclusive().runTest(this); new TestExclusive().runTest(this);
// new TestFullText().runTest(this); new TestFullText().runTest(this);
// new TestFunctionOverload().runTest(this); new TestFunctionOverload().runTest(this);
// new TestFunctions().runTest(this); new TestFunctions().runTest(this);
// new TestInit().runTest(this); new TestInit().runTest(this);
// new TestIndex().runTest(this); new TestIndex().runTest(this);
// new TestLargeBlob().runTest(this); new TestLargeBlob().runTest(this);
// new TestLinkedTable().runTest(this); new TestLinkedTable().runTest(this);
// new TestListener().runTest(this); new TestListener().runTest(this);
// new TestLob().runTest(this); new TestLob().runTest(this);
// new TestMemoryUsage().runTest(this); new TestMemoryUsage().runTest(this);
// new TestMultiConn().runTest(this); new TestMultiConn().runTest(this);
// new TestMultiDimension().runTest(this); new TestMultiDimension().runTest(this);
// new TestMultiThread().runTest(this); new TestMultiThread().runTest(this);
// new TestMultiThreadedKernel().runTest(this); new TestMultiThreadedKernel().runTest(this);
// new TestOpenClose().runTest(this); new TestOpenClose().runTest(this);
// new TestOptimizations().runTest(this); new TestOptimizations().runTest(this);
// new TestOutOfMemory().runTest(this); new TestOutOfMemory().runTest(this);
// new TestPowerOff().runTest(this); new TestPowerOff().runTest(this);
// new TestQueryCache().runTest(this); new TestQueryCache().runTest(this);
// new TestReadOnly().runTest(this); new TestReadOnly().runTest(this);
// new TestRecursiveQueries().runTest(this); new TestRecursiveQueries().runTest(this);
// new TestRights().runTest(this); new TestRights().runTest(this);
// new TestRunscript().runTest(this); new TestRunscript().runTest(this);
// new TestSQLInjection().runTest(this); new TestSQLInjection().runTest(this);
// new TestSessionsLocks().runTest(this); new TestSessionsLocks().runTest(this);
// new TestSelectCountNonNullColumn().runTest(this); new TestSelectCountNonNullColumn().runTest(this);
// new TestSequence().runTest(this); new TestSequence().runTest(this);
// new TestSpaceReuse().runTest(this); new TestSpaceReuse().runTest(this);
// new TestSpeed().runTest(this); new TestSpeed().runTest(this);
// new TestTableEngines().runTest(this); new TestTableEngines().runTest(this);
// new TestTempTables().runTest(this); new TestTempTables().runTest(this);
// new TestTransaction().runTest(this); new TestTransaction().runTest(this);
// new TestTriggersConstraints().runTest(this); new TestTriggersConstraints().runTest(this);
// new TestTwoPhaseCommit().runTest(this); new TestTwoPhaseCommit().runTest(this);
// new TestView().runTest(this); new TestView().runTest(this);
// new TestViewAlterTable().runTest(this); new TestViewAlterTable().runTest(this);
// new TestViewDropView().runTest(this); new TestViewDropView().runTest(this);
//
// // jaqu // jaqu
// new AliasMapTest().runTest(this); new AliasMapTest().runTest(this);
// new AnnotationsTest().runTest(this); new AnnotationsTest().runTest(this);
// new ClobTest().runTest(this); new ClobTest().runTest(this);
// new ModelsTest().runTest(this); new ModelsTest().runTest(this);
// new SamplesTest().runTest(this); new SamplesTest().runTest(this);
// new UpdateTest().runTest(this); new UpdateTest().runTest(this);
//
// // jdbc // jdbc
// new TestBatchUpdates().runTest(this); new TestBatchUpdates().runTest(this);
// new TestCallableStatement().runTest(this); new TestCallableStatement().runTest(this);
// new TestCancel().runTest(this); new TestCancel().runTest(this);
// new TestDatabaseEventListener().runTest(this); new TestDatabaseEventListener().runTest(this);
// new TestDriver().runTest(this); new TestDriver().runTest(this);
// new TestJavaObject().runTest(this); new TestJavaObject().runTest(this);
// new TestLimitUpdates().runTest(this); new TestLimitUpdates().runTest(this);
// new TestLobApi().runTest(this); new TestLobApi().runTest(this);
// new TestManyJdbcObjects().runTest(this); new TestManyJdbcObjects().runTest(this);
// new TestMetaData().runTest(this); new TestMetaData().runTest(this);
// new TestNativeSQL().runTest(this); new TestNativeSQL().runTest(this);
// new TestPreparedStatement().runTest(this); new TestPreparedStatement().runTest(this);
// new TestResultSet().runTest(this); new TestResultSet().runTest(this);
// new TestStatement().runTest(this); new TestStatement().runTest(this);
// new TestTransactionIsolation().runTest(this); new TestTransactionIsolation().runTest(this);
// new TestUpdatableResultSet().runTest(this); new TestUpdatableResultSet().runTest(this);
// new TestZloty().runTest(this); new TestZloty().runTest(this);
//
// // jdbcx // jdbcx
// new TestConnectionPool().runTest(this); new TestConnectionPool().runTest(this);
// new TestDataSource().runTest(this); new TestDataSource().runTest(this);
// new TestXA().runTest(this); new TestXA().runTest(this);
// new TestXASimple().runTest(this); new TestXASimple().runTest(this);
//
// // server // server
// new TestAutoServer().runTest(this); new TestAutoServer().runTest(this);
// new TestNestedLoop().runTest(this); new TestNestedLoop().runTest(this);
// new TestWeb().runTest(this); new TestWeb().runTest(this);
//
// // mvcc & row level locking // mvcc & row level locking
// new TestMvcc1().runTest(this); new TestMvcc1().runTest(this);
// new TestMvcc2().runTest(this); new TestMvcc2().runTest(this);
// new TestMvcc3().runTest(this); new TestMvcc3().runTest(this);
// new TestMvccMultiThreaded().runTest(this); new TestMvccMultiThreaded().runTest(this);
// new TestRowLocks().runTest(this); new TestRowLocks().runTest(this);
//
// // synth // synth
// new TestBtreeIndex().runTest(this); new TestBtreeIndex().runTest(this);
// new TestDiskFull().runTest(this); new TestDiskFull().runTest(this);
// new TestCrashAPI().runTest(this); new TestCrashAPI().runTest(this);
// new TestFuzzOptimizations().runTest(this); new TestFuzzOptimizations().runTest(this);
// new TestLimit().runTest(this); new TestLimit().runTest(this);
// new TestRandomSQL().runTest(this); new TestRandomSQL().runTest(this);
// new TestRandomCompare().runTest(this); new TestRandomCompare().runTest(this);
// new TestKillRestart().runTest(this); new TestKillRestart().runTest(this);
// new TestKillRestartMulti().runTest(this); new TestKillRestartMulti().runTest(this);
// new TestMultiThreaded().runTest(this); new TestMultiThreaded().runTest(this);
// new TestOuterJoins().runTest(this); new TestOuterJoins().runTest(this);
// new TestNestedJoins().runTest(this); new TestNestedJoins().runTest(this);
afterTest(); afterTest();
} }
......
...@@ -102,7 +102,7 @@ public class TestMVStore extends TestBase { ...@@ -102,7 +102,7 @@ public class TestMVStore extends TestBase {
s.store(); s.store();
s.close(); s.close();
int[] expectedReadsForCacheSize = { int[] expectedReadsForCacheSize = {
3419, 2590, 1924, 1440, 1127, 956, 918 3407, 2590, 1924, 1440, 1101, 956, 918
}; };
for (int cacheSize = 0; cacheSize <= 6; cacheSize += 4) { for (int cacheSize = 0; cacheSize <= 6; cacheSize += 4) {
s = MVStoreBuilder.fileBased(fileName). s = MVStoreBuilder.fileBased(fileName).
......
...@@ -51,7 +51,7 @@ public class MVMap<K, V> extends AbstractMap<K, V> ...@@ -51,7 +51,7 @@ public class MVMap<K, V> extends AbstractMap<K, V>
public MVMap(DataType keyType, DataType valueType) { public MVMap(DataType keyType, DataType valueType) {
this.keyType = keyType; this.keyType = keyType;
this.valueType = valueType; this.valueType = valueType;
this.root = Page.createEmpty(this, createVersion - 1); this.root = Page.createEmpty(this, -1);
} }
public void open(MVStore store, HashMap<String, String> config) { public void open(MVStore store, HashMap<String, String> config) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论