NO-JIRA: Fix small typo in variable name and toString representation

This commit is contained in:
Benjamin Graf 2020-03-21 10:03:42 +01:00 committed by Justin Bertram
parent 6b6578a74a
commit 2645f3df46
2 changed files with 6 additions and 6 deletions

View File

@ -1030,7 +1030,7 @@ public abstract class AbstractJournalStorageManager extends CriticalComponentImp
if (pageTX == null) {
ActiveMQServerLogger.LOGGER.journalCannotFindPageTX(pageUpdate.pageTX);
} else {
if (!pageTX.onUpdate(pageUpdate.recods, null, null)) {
if (!pageTX.onUpdate(pageUpdate.records, null, null)) {
invalidPGTx = pageTX;
}
}

View File

@ -27,11 +27,11 @@ public class PageUpdateTXEncoding implements EncodingSupport {
public long pageTX;
public int recods;
public int records;
@Override
public String toString() {
return "PageUpdateTXEncoding [pageTX=" + pageTX + ", recods=" + recods + "]";
return "PageUpdateTXEncoding [pageTX=" + pageTX + ", records=" + records + "]";
}
public PageUpdateTXEncoding() {
@ -39,19 +39,19 @@ public class PageUpdateTXEncoding implements EncodingSupport {
public PageUpdateTXEncoding(final long pageTX, final int records) {
this.pageTX = pageTX;
this.recods = records;
this.records = records;
}
@Override
public void decode(ActiveMQBuffer buffer) {
this.pageTX = buffer.readLong();
this.recods = buffer.readInt();
this.records = buffer.readInt();
}
@Override
public void encode(ActiveMQBuffer buffer) {
buffer.writeLong(pageTX);
buffer.writeInt(recods);
buffer.writeInt(records);
}
@Override