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:
parent
84f830cb0c
commit
3e48cd7787
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue