ARTEMIS-2483 Sync calculation should use the block size
This commit is contained in:
parent
485043cf0b
commit
a2dd5ae590
|
@ -77,7 +77,10 @@ public class SyncCalculation {
|
|||
int maxAIO,
|
||||
JournalType journalType) throws Exception {
|
||||
SequentialFileFactory factory = newFactory(datafolder, fsync, journalType, blockSize * blocks, maxAIO);
|
||||
final boolean asyncWrites = journalType == JournalType.ASYNCIO && !syncWrites;
|
||||
|
||||
if (factory instanceof AIOSequentialFileFactory) {
|
||||
factory.setAlignment(blockSize);
|
||||
}
|
||||
//the write latencies could be taken only when writes are effectively synchronous
|
||||
|
||||
if (journalType == JournalType.ASYNCIO && syncWrites) {
|
||||
|
|
Loading…
Reference in New Issue