dain / leveldb

Port of LevelDB to Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

File size restriction

hbf opened this issue · comments

First of all, thanks a lot for this library, I've been using it with great pleasure!

One issue I have run into is the maximal file size: I see that in Table.java, there is a precondition check on the file size, see here.

Is this actually needed? I have a file that is larger than this limit and cannot open it.

I've removed the check in question and could load a large SSTable using the FileChannelTable class. So it looks like this check is only needed for memapping, i.e., for the MMapTable class.

I've submitted a PR for this: #54