Skip to content

Commit

Permalink
Merge pull request #5 from maxsumrall/fix/use-variable-db-size
Browse files Browse the repository at this point in the history
Use the max db-size as specified by withMaxDBSize
  • Loading branch information
maxsumrall authored Oct 2, 2017
2 parents 373453b + 08f4447 commit efe20e9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public LMDBIndexFactory withMaxDBSize( long val, BinaryByteUnit unit )

public LMDB build() throws FileSystemException
{
env = create().setMapSize( MEBIBYTES.toBytes( 42 ) ).setMaxDbs( 1 ).open( dbDir );
env = create().setMapSize( unit.toBytes( val ) ).setMaxDbs( 1 ).open( dbDir );
db = env.openDbi( "pathdb.db", MDB_CREATE );

return new LMDB( env, db, new PersistedStatisticsStore() );
Expand Down

0 comments on commit efe20e9

Please sign in to comment.