@@ -18,65 +18,65 @@ Definition
18
18
Returns a document with the status of the replica set, using data
19
19
polled from the :term:`oplog`. Use this output when diagnosing
20
20
issues with replication.
21
-
21
+
22
22
Output
23
23
------
24
24
25
- .. data:: db.getReplicationInfo.logSizeMB
25
+ .. data:: db.getReplicationInfo() .logSizeMB
26
26
27
27
Returns the total size of the :term:`oplog` in megabytes. This refers
28
28
to the total amount of space allocated to the oplog rather than the
29
29
current size of operations stored in the oplog.
30
30
31
31
.. include:: /includes/fact-oplog-size.rst
32
32
33
- .. data:: db.getReplicationInfo.usedMB
33
+ .. data:: db.getReplicationInfo() .usedMB
34
34
35
35
Returns the total amount of space used by the :term:`oplog` in
36
36
megabytes. This refers to the total amount of space currently used by
37
37
operations stored in the oplog rather than the total amount of space
38
38
allocated.
39
39
40
- .. data:: db.getReplicationInfo.errmsg
40
+ .. data:: db.getReplicationInfo() .errmsg
41
41
42
42
Returns an error message if there are no entries in the oplog.
43
43
44
- .. data:: db.getReplicationInfo.oplogMainRowCount
44
+ .. data:: db.getReplicationInfo() .oplogMainRowCount
45
45
46
- Only present when there are no entries in the oplog. Reports a the
46
+ Only present when there are no entries in the oplog. Reports the
47
47
number of items or rows in the :term:`oplog` (e.g. ``0``).
48
48
49
- .. data:: db.getReplicationInfo.timeDiff
49
+ .. data:: db.getReplicationInfo() .timeDiff
50
50
51
51
Returns the difference between the first and
52
52
last operation in the :term:`oplog`, represented in seconds.
53
53
54
54
Only present if there are entries in the oplog.
55
55
56
- .. data:: db.getReplicationInfo.timeDiffHours
56
+ .. data:: db.getReplicationInfo() .timeDiffHours
57
57
58
58
Returns the difference between the first and last
59
59
operation in the :term:`oplog`, rounded and represented in hours.
60
60
61
61
Only present if there are entries in the oplog.
62
62
63
- .. data:: db.getReplicationInfo.tFirst
63
+ .. data:: db.getReplicationInfo() .tFirst
64
64
65
- Returns a time stamp for the first (i.e. earliest)
65
+ Returns a timestamp for the first (i.e. earliest)
66
66
operation in the :term:`oplog`. Compare this value to the last write
67
67
operation issued against the server.
68
68
69
69
Only present if there are entries in the oplog.
70
70
71
- .. data:: db.getReplicationInfo.tLast
71
+ .. data:: db.getReplicationInfo() .tLast
72
72
73
- Returns a time stamp for the last (i.e. latest)
73
+ Returns a timestamp for the last (i.e. latest)
74
74
operation in the :term:`oplog`. Compare this value to the last write
75
75
operation issued against the server.
76
76
77
77
Only present if there are entries in the oplog.
78
78
79
- .. data:: db.getReplicationInfo.now
79
+ .. data:: db.getReplicationInfo() .now
80
80
81
81
Returns a timestamp that reflects the current time.
82
82
The shell process generates this value, and the datum may differ
0 commit comments