File tree 1 file changed +11
-7
lines changed
1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -17,17 +17,20 @@ Definition
17
17
18
18
Writes a non-operational entry to the :term:`oplog`.
19
19
20
-
21
20
Syntax
22
21
------
23
22
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:
25
27
26
28
.. code-block:: javascript
29
+ :copyable: false
27
30
28
31
db.adminCommand(
29
32
{
30
- appendOplogNote: 1
33
+ appendOplogNote: 1,
31
34
data: <document>
32
35
}
33
36
)
@@ -42,9 +45,11 @@ Command Fields
42
45
* - Field
43
46
- Type
44
47
- Description
48
+
45
49
* - ``appendOplogNote``
46
50
- any
47
51
- Set to any value.
52
+
48
53
* - ``data``
49
54
- document
50
55
- The document to append to the :term:`oplog`.
@@ -59,9 +64,9 @@ To append a non-operational entry to the :term:`oplog`, use the
59
64
60
65
db.adminCommand(
61
66
{
62
- appendOplogNote: 1
67
+ appendOplogNote: 1,
63
68
data: {
64
- msg: "Appending test msg to oplog"
69
+ msg: "Appending test message to oplog"
65
70
}
66
71
}
67
72
)
@@ -75,11 +80,10 @@ Example ``oplog`` entry:
75
80
op: "n",
76
81
ns: "",
77
82
o: {
78
- msg: "Appending test msg to oplog"
83
+ msg: "Appending test message to oplog"
79
84
},
80
85
ts: Timestamp({ t: 1689177321, i: 1 }),
81
86
t: Long("1"),
82
87
v: Long("2"),
83
88
wall: ISODate("2023-07-12T15:55:21.180Z")
84
89
}
85
-
You can’t perform that action at this time.
0 commit comments