ARTEMIS-1248 Fixing regression on Page.writing to live page

This is fixing ReplicatedPagedFailoverTest.testCommitOccurredUnblockedAndResendNoDuplicates
Even though the issue is not on replication.
This commit is contained in:
Clebert Suconic 2017-07-12 10:12:36 -04:00
parent 84f830cb0c
commit 3e48cd7787
1 changed files with 3 additions and 0 deletions

View File

@ -131,6 +131,9 @@ public final class Page implements Comparable<Page> {
if (this.canBeMapped) {
readFromMapped(storage, messages);
// if the file is open to be written
// it needs to updated the position
file.position(file.size());
} else {
readFromSequentialFile(storage, messages);
}