Fixed a bug in MemoryMapStorage
@@ -136,7 +136,7 @@ public class MemoryMapStorage {
// If we have no storage file or if the current file is full, create a new one
if ((currentMappedFile == null)
- || (currentMappedFile.position() + length > STORAGE_FILE_CAPACITY)) {
+ || (currentMappedFile.position() + (length * Double.BYTES) > STORAGE_FILE_CAPACITY)) {
currentMappedFile = createNewMappedFile();
}
