Skip to content

Commit 3de097b

Browse files
committed
save
1 parent fd302cd commit 3de097b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

mdbx/env.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -354,9 +354,9 @@ type EnvInfo struct {
354354
* first process opened the database). */
355355
PageOps EnfInfoPageOps
356356

357-
LastTxnID int64 // ID of the last committed transaction. keep for backward compatibility - use RecentTxnID
358-
RecentTxnID int64 // ID of the last committed transaction
359-
LatterReaderTxnID int64 // ID of the last reader transaction
357+
LastTxnID int64 // ID of the last committed transaction. keep for backward compatibility - use RecentTxnID
358+
RecentTxnID uint64 // ID of the last committed transaction
359+
LatterReaderTxnID uint64 // ID of the last reader transaction
360360

361361
MaxReaders uint // maximum number of threads for the environment
362362
NumReaders uint // maximum number of threads used in the environment
@@ -431,8 +431,8 @@ func castEnvInfo(_info C.MDBX_envinfo) *EnvInfo {
431431
},
432432
LastPNO: int64(_info.mi_last_pgno),
433433
LastTxnID: int64(_info.mi_recent_txnid), // keep for backward compatibility
434-
RecentTxnID: int64(_info.mi_recent_txnid),
435-
LatterReaderTxnID: int64(_info.mi_latter_reader_txnid),
434+
RecentTxnID: uint64(_info.mi_recent_txnid),
435+
LatterReaderTxnID: uint64(_info.mi_latter_reader_txnid),
436436
MaxReaders: uint(_info.mi_maxreaders),
437437
NumReaders: uint(_info.mi_numreaders),
438438
PageSize: uint(_info.mi_dxb_pagesize),

0 commit comments

Comments
 (0)