@@ -1452,13 +1452,20 @@ transactions
1452
1452
"transactions" : {
1453
1453
"retriedCommandsCount" : <NumberLong>,
1454
1454
"retriedStatementsCount" : <NumberLong>,
1455
- "transactionsCollectionWriteCount" : <NumberLong>
1455
+ "transactionsCollectionWriteCount" : <NumberLong>,
1456
+ "currentActive" : <NumberLong>,
1457
+ "currentInactive" : <NumberLong>,
1458
+ "currentOpen" : <NumberLong>,
1459
+ "totalAborted" : <NumberLong>,
1460
+ "totalCommitted" : <NumberLong>,
1461
+ "totalStarted" : <NumberLong>
1456
1462
},
1457
1463
1458
1464
.. serverstatus:: transactions
1459
1465
1460
1466
A document with data about the :doc:`retryable writes
1461
- </core/retryable-writes>`.
1467
+ </core/retryable-writes>` and
1468
+ :doc:`multi-document transactions </core/transactions>`.
1462
1469
1463
1470
.. serverstatus:: transactions.retriedCommandsCount
1464
1471
@@ -1513,6 +1520,48 @@ transactions
1513
1520
1514
1521
.. versionadded:: 3.6.3
1515
1522
1523
+ .. serverstatus:: transactions.currentActive
1524
+
1525
+ The total number of open transactions currently executing a command.
1526
+
1527
+ .. versionadded:: 4.0.2
1528
+
1529
+ .. serverstatus:: transactions.currentInactive
1530
+
1531
+ The total number of open transactions that are not currently
1532
+ executing a command.
1533
+
1534
+ .. versionadded:: 4.0.2
1535
+
1536
+ .. serverstatus:: transactions.currentOpen
1537
+
1538
+ The total number of open transactions. A transaction is opened when
1539
+ the first command is run as a part of that transaction, and stays
1540
+ open until the transaction either commits or aborts.
1541
+
1542
+ .. versionadded:: 4.0.2
1543
+
1544
+ .. serverstatus:: transactions.totalAborted
1545
+
1546
+ The total number of transactions aborted on this server since the
1547
+ :binary:`mongod <bin.mongod>` process's last startup.
1548
+
1549
+ .. versionadded:: 4.0.2
1550
+
1551
+ .. serverstatus:: transactions.totalCommitted
1552
+
1553
+ The total number of transactions committed on this server since the
1554
+ :binary:`mongod <bin.mongod>` process's last startup.
1555
+
1556
+ .. versionadded:: 4.0.2
1557
+
1558
+ .. serverstatus:: transactions.totalStarted
1559
+
1560
+ The total number of transactions started on this server since the
1561
+ :binary:`mongod <bin.mongod>` process's last startup.
1562
+
1563
+ .. versionadded:: 4.0.2
1564
+
1516
1565
.. _server-status-wiredTiger:
1517
1566
1518
1567
wiredTiger
0 commit comments