Skip to content

Commit 588c4c2

Browse files
committed
add missing tx
1 parent 6976a54 commit 588c4c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlstore.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ func (store *sqlStore) SaveMessageAndIncrNextSenderMsgSeqNum(seqNum int, msg []b
302302
}
303303

304304
next := store.cache.NextSenderMsgSeqNum()
305-
_, err = store.db.Exec(sqlString(`UPDATE sessions SET outgoing_seqnum = ?
305+
_, err = tx.Exec(sqlString(`UPDATE sessions SET outgoing_seqnum = ?
306306
WHERE beginstring=? AND session_qualifier=?
307307
AND sendercompid=? AND sendersubid=? AND senderlocid=?
308308
AND targetcompid=? AND targetsubid=? AND targetlocid=?`, store.placeholder),

0 commit comments

Comments
 (0)