Skip to content

Commit ab7bf6c

Browse files
authored
DOCS-15723 fix typos in command naming (#2227)
* DOCS-15723 fix typos in command naming * staging test * fix spacing * small wording fix for timestamp * trying to fix error msgs * fix build errors in includes
1 parent 279fca0 commit ab7bf6c

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

source/includes/output-printReplicationInfo.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ Output Fields
1919
:method:`db.getReplicationInfo()`:
2020

2121
configured oplog size
22-
Displays the :data:`db.getReplicationInfo.logSizeMB` value.
22+
Displays the :data:`db.getReplicationInfo().logSizeMB` value.
2323

2424
log length start to end
25-
Displays the :data:`db.getReplicationInfo.timeDiff` and
26-
:data:`db.getReplicationInfo.timeDiffHours` values.
25+
Displays the :data:`db.getReplicationInfo().timeDiff` and
26+
:data:`db.getReplicationInfo().timeDiffHours` values.
2727

2828
oplog first event time
29-
Displays the :data:`db.getReplicationInfo.tFirst`.
29+
Displays the :data:`db.getReplicationInfo().tFirst`.
3030

3131
oplog last event time
32-
Displays the :data:`db.getReplicationInfo.tLast`.
32+
Displays the :data:`db.getReplicationInfo().tLast`.
3333

3434
now
35-
Displays the :data:`db.getReplicationInfo.now`.
35+
Displays the :data:`db.getReplicationInfo().now`.
3636

3737
See :method:`db.getReplicationInfo()` for description of the data.

source/reference/method/db.getReplicationInfo.txt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,65 +18,65 @@ Definition
1818
Returns a document with the status of the replica set, using data
1919
polled from the :term:`oplog`. Use this output when diagnosing
2020
issues with replication.
21-
21+
2222
Output
2323
------
2424

25-
.. data:: db.getReplicationInfo.logSizeMB
25+
.. data:: db.getReplicationInfo().logSizeMB
2626

2727
Returns the total size of the :term:`oplog` in megabytes. This refers
2828
to the total amount of space allocated to the oplog rather than the
2929
current size of operations stored in the oplog.
3030

3131
.. include:: /includes/fact-oplog-size.rst
3232

33-
.. data:: db.getReplicationInfo.usedMB
33+
.. data:: db.getReplicationInfo().usedMB
3434

3535
Returns the total amount of space used by the :term:`oplog` in
3636
megabytes. This refers to the total amount of space currently used by
3737
operations stored in the oplog rather than the total amount of space
3838
allocated.
3939

40-
.. data:: db.getReplicationInfo.errmsg
40+
.. data:: db.getReplicationInfo().errmsg
4141

4242
Returns an error message if there are no entries in the oplog.
4343

44-
.. data:: db.getReplicationInfo.oplogMainRowCount
44+
.. data:: db.getReplicationInfo().oplogMainRowCount
4545

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
4747
number of items or rows in the :term:`oplog` (e.g. ``0``).
4848

49-
.. data:: db.getReplicationInfo.timeDiff
49+
.. data:: db.getReplicationInfo().timeDiff
5050

5151
Returns the difference between the first and
5252
last operation in the :term:`oplog`, represented in seconds.
5353

5454
Only present if there are entries in the oplog.
5555

56-
.. data:: db.getReplicationInfo.timeDiffHours
56+
.. data:: db.getReplicationInfo().timeDiffHours
5757

5858
Returns the difference between the first and last
5959
operation in the :term:`oplog`, rounded and represented in hours.
6060

6161
Only present if there are entries in the oplog.
6262

63-
.. data:: db.getReplicationInfo.tFirst
63+
.. data:: db.getReplicationInfo().tFirst
6464

65-
Returns a time stamp for the first (i.e. earliest)
65+
Returns a timestamp for the first (i.e. earliest)
6666
operation in the :term:`oplog`. Compare this value to the last write
6767
operation issued against the server.
6868

6969
Only present if there are entries in the oplog.
7070

71-
.. data:: db.getReplicationInfo.tLast
71+
.. data:: db.getReplicationInfo().tLast
7272

73-
Returns a time stamp for the last (i.e. latest)
73+
Returns a timestamp for the last (i.e. latest)
7474
operation in the :term:`oplog`. Compare this value to the last write
7575
operation issued against the server.
7676

7777
Only present if there are entries in the oplog.
7878

79-
.. data:: db.getReplicationInfo.now
79+
.. data:: db.getReplicationInfo().now
8080

8181
Returns a timestamp that reflects the current time.
8282
The shell process generates this value, and the datum may differ

0 commit comments

Comments
 (0)