File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
src/main/java/com/actiontech/dble Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -325,7 +325,7 @@ public void startup() throws IOException {
325
325
short bufferPoolPageNumber = system .getBufferPoolPageNumber ();
326
326
//minimum allocation unit
327
327
short bufferPoolChunkSize = system .getBufferPoolChunkSize ();
328
- if (bufferPoolPageSize * bufferPoolPageNumber > Platform .getMaxDirectMemory ()) {
328
+ if (( long ) bufferPoolPageSize * ( long ) bufferPoolPageNumber > Platform .getMaxDirectMemory ()) {
329
329
throw new IOException ("Direct BufferPool size[bufferPoolPageSize(" + bufferPoolPageSize + ")*bufferPoolPageNumber(" + bufferPoolPageNumber + ")] lager than MaxDirectMemory[" + Platform .getMaxDirectMemory () + "]" );
330
330
}
331
331
bufferPool = new DirectByteBufferPool (bufferPoolPageSize , bufferPoolChunkSize , bufferPoolPageNumber );
You can’t perform that action at this time.
0 commit comments