Skip to content

Commit

Permalink
Fix compilation error after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
burqen committed May 18, 2017
1 parent 31f04ad commit 18241e8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Expand Up @@ -91,6 +91,9 @@ private void doTest( int numberOfTrees ) throws IOException
fillWithData( tree, keysPerTree );
writeTime += System.nanoTime() - start;
tree.checkpoint( IOLimiter.unlimited() );

// Make dirty
tree.writer().close();
}
}

Expand All @@ -99,8 +102,6 @@ private void doTest( int numberOfTrees ) throws IOException
for ( int i = 0; i < numberOfTrees; i++ )
{
trees[i] = gbpTree( file[i] );
trees[i].prepareForRecovery();
trees[i].finishRecovery();
}
recoveryCleanupWorkCollector.run();
IOUtils.closeAll( trees );
Expand Down Expand Up @@ -139,7 +140,7 @@ private class CleanLogMonitor implements GBPTree.Monitor
AtomicLong accumulatedNumberOfPages = new AtomicLong();

@Override
public void recoveryCompleted( long numberOfPagesVisited, long numberOfCleanedCrashPointers,
public void cleanupFinished( long numberOfPagesVisited, long numberOfCleanedCrashPointers,
long durationMillis )
{
accumulatedCleanTime.accumulateAndGet( durationMillis, ADD );
Expand Down
Expand Up @@ -43,6 +43,7 @@
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import static org.neo4j.index.internal.gbptree.RecoveryCleanupWorkCollector.IMMEDIATE;
import static org.neo4j.kernel.impl.api.scan.FullStoreChangeStream.EMPTY;
import static org.neo4j.kernel.impl.api.scan.FullStoreChangeStream.asStream;

Expand Down Expand Up @@ -76,7 +77,8 @@ public void mustBeDirtyIfFailedDuringRebuild() throws Exception
try
{
nativeLabelScanStore =
new NativeLabelScanStore( pageCache, storeDir, THROWING_STREAM, false, new Monitors() );
new NativeLabelScanStore( pageCache, storeDir, THROWING_STREAM, false, new Monitors(),
IMMEDIATE );

nativeLabelScanStore.init();
nativeLabelScanStore.start();
Expand All @@ -95,7 +97,7 @@ public void mustBeDirtyIfFailedDuringRebuild() throws Exception
monitors.addMonitorListener( monitor );

nativeLabelScanStore =
new NativeLabelScanStore( pageCache, storeDir, EMPTY, false, monitors );
new NativeLabelScanStore( pageCache, storeDir, EMPTY, false, monitors, IMMEDIATE );
nativeLabelScanStore.init();
nativeLabelScanStore.start();

Expand All @@ -118,7 +120,7 @@ public void shouldFailOnUnsortedLabelsFromFullStoreChangeStream() throws Excepti
try
{
nativeLabelScanStore =
new NativeLabelScanStore( pageCache, storeDir, changeStream, false, new Monitors() );
new NativeLabelScanStore( pageCache, storeDir, changeStream, false, new Monitors(), IMMEDIATE );
nativeLabelScanStore.init();

// when
Expand Down

0 comments on commit 18241e8

Please sign in to comment.