Skip to content

Commit

Permalink
Post merge adaptations
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaDemianenko committed Nov 28, 2017
1 parent 0c76083 commit d3aeb85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -29,6 +29,7 @@


import org.neo4j.io.fs.DefaultFileSystemAbstraction; import org.neo4j.io.fs.DefaultFileSystemAbstraction;
import org.neo4j.io.fs.FileSystemAbstraction; import org.neo4j.io.fs.FileSystemAbstraction;
import org.neo4j.io.fs.OpenMode;
import org.neo4j.io.fs.StoreFileChannel; import org.neo4j.io.fs.StoreFileChannel;
import org.neo4j.kernel.impl.store.InvalidIdGeneratorException; import org.neo4j.kernel.impl.store.InvalidIdGeneratorException;
import org.neo4j.test.rule.TestDirectory; import org.neo4j.test.rule.TestDirectory;
Expand Down Expand Up @@ -197,7 +198,7 @@ private void createEmptyFile()
private static class SingleByteFileSystemAbstraction extends DefaultFileSystemAbstraction private static class SingleByteFileSystemAbstraction extends DefaultFileSystemAbstraction
{ {
@Override @Override
public StoreFileChannel open( File fileName, String mode ) throws IOException public StoreFileChannel open( File fileName, OpenMode mode ) throws IOException
{ {
return new SingleByteBufferChannel( super.open( fileName, mode ) ); return new SingleByteBufferChannel( super.open( fileName, mode ) );
} }
Expand Down
Expand Up @@ -120,7 +120,7 @@ public void failMigrationWhenNodeIdFileIsBroken() throws Exception
File nodeIdFile = new File( storeDir, StoreFile.NODE_STORE.storeFileName() + ".id" ); File nodeIdFile = new File( storeDir, StoreFile.NODE_STORE.storeFileName() + ".id" );
writeFile( nodeIdFile, new byte[]{1, 2, 3} ); writeFile( nodeIdFile, new byte[]{1, 2, 3} );


indexMigrator.migrate( storeDir, migrationDir, progressMonitor, StandardV3_2.STORE_VERSION, StandardV3_2.STORE_VERSION ); indexMigrator.migrate( storeDir, migrationDir, progressReporter, StandardV3_2.STORE_VERSION, StandardV3_2.STORE_VERSION );
} }


@Test @Test
Expand Down

0 comments on commit d3aeb85

Please sign in to comment.