Skip to content

Commit ae30291

Browse files
committed
passing next value
1 parent 909de31 commit ae30291

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

quickfixj-core/src/main/java/quickfix/JdbcStore.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,12 +299,12 @@ public boolean set(int sequence, String message) throws IOException {
299299

300300
public void setNextSenderMsgSeqNum(int next) throws IOException {
301301
cache.setNextSenderMsgSeqNum(next);
302-
storeSequenceNumber(SQL_UPDATE_OUTGOING_SEQNUM, cache.getNextSenderMsgSeqNum());
302+
storeSequenceNumber(SQL_UPDATE_OUTGOING_SEQNUM, next);
303303
}
304304

305305
public void setNextTargetMsgSeqNum(int next) throws IOException {
306306
cache.setNextTargetMsgSeqNum(next);
307-
storeSequenceNumber(SQL_UPDATE_INCOMING_SEQNUM, cache.getNextTargetMsgSeqNum());
307+
storeSequenceNumber(SQL_UPDATE_INCOMING_SEQNUM, next);
308308
}
309309

310310
private void storeSequenceNumber(String sequenceUpdateSql, int sequence) throws IOException {

0 commit comments

Comments
 (0)