Skip to content

Commit 862022c

Browse files
jason-price-mongodbjason-price-mongodb
and
jason-price-mongodb
authored
DOCS-16601-appendOplogNote-updates (#5979)
* DOCS-16601-appendOplogNote-updates * DOCS-16601-appendOplogNote-updates * DOCS-16601-appendOplogNote-updates * DOCS-16601-appendOplogNote-updates * DOCS-16601-appendOplogNote-updates * DOCS-16601-appendOplogNote-updates --------- Co-authored-by: jason-price-mongodb <jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com>
1 parent 6a295b3 commit 862022c

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

Diff for: source/reference/command/appendOplogNote.txt

+11-7
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,20 @@ Definition
1717

1818
Writes a non-operational entry to the :term:`oplog`.
1919

20-
2120
Syntax
2221
------
2322

24-
You can only issue the ``appendOplogNote`` command against the ``admin`` database.
23+
You can only run the ``appendOplogNote`` command on the ``admin``
24+
database.
25+
26+
The command has this syntax:
2527

2628
.. code-block:: javascript
29+
:copyable: false
2730

2831
db.adminCommand(
2932
{
30-
appendOplogNote: 1
33+
appendOplogNote: 1,
3134
data: <document>
3235
}
3336
)
@@ -42,9 +45,11 @@ Command Fields
4245
* - Field
4346
- Type
4447
- Description
48+
4549
* - ``appendOplogNote``
4650
- any
4751
- Set to any value.
52+
4853
* - ``data``
4954
- document
5055
- The document to append to the :term:`oplog`.
@@ -59,9 +64,9 @@ To append a non-operational entry to the :term:`oplog`, use the
5964

6065
db.adminCommand(
6166
{
62-
appendOplogNote: 1
67+
appendOplogNote: 1,
6368
data: {
64-
msg: "Appending test msg to oplog"
69+
msg: "Appending test message to oplog"
6570
}
6671
}
6772
)
@@ -75,11 +80,10 @@ Example ``oplog`` entry:
7580
op: "n",
7681
ns: "",
7782
o: {
78-
msg: "Appending test msg to oplog"
83+
msg: "Appending test message to oplog"
7984
},
8085
ts: Timestamp({ t: 1689177321, i: 1 }),
8186
t: Long("1"),
8287
v: Long("2"),
8388
wall: ISODate("2023-07-12T15:55:21.180Z")
8489
}
85-

0 commit comments

Comments
 (0)