Skip to content

Commit 2e2ee49

Browse files
authored
DOCS-15752 Change shardingState Output (#2966) (#3108)
* DOCS-15752 Change shardingState Output * DC edits * change field values
1 parent b3a1274 commit 2e2ee49

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

source/reference/command/shardingState.txt

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,24 @@ document that resembles the following prototype:
5454
"shardName" : "<string>",
5555
"shardHost" : "string:",
5656
"versions" : {
57-
"<database>.<collection>" : Timestamp(<...>),
58-
"<database>.<collection>" : Timestamp(<...>)
57+
"<database>.<collection>" : {
58+
"placementVersion": Timestamp({ t: 1, i: 1024 }),
59+
"timestamp": Timestamp({ t: 1682444810, i: 8 })
60+
},
61+
"<database>.<collection>" : {
62+
"placementVersion": Timestamp({ t: 0, i: 0 }),
63+
"timestamp": Timestamp({ t: 0, i: 0 })
64+
}
5965
},
6066
"ok" : 1,
6167
"$clusterTime" : {
62-
"clusterTime" : Timestamp(1510716515, 1),
68+
"clusterTime" : Timestamp({ t: 1682457265, i: 1 }),
6369
"signature" : {
6470
"hash" : BinData(0,"B2ViX7XLzFLS5Fl9XEuFXbwKIM4="),
6571
"keyId" : NumberLong("6488045157173166092")
6672
}
6773
},
68-
"operationTime" : Timestamp(1510716515, 1)
74+
"operationTime" : Timestamp({ t: 1682457260, i: 1 })
6975
}
7076

7177
Otherwise, :dbcommand:`shardingState` will return the following document:
@@ -76,13 +82,13 @@ Otherwise, :dbcommand:`shardingState` will return the following document:
7682
"enabled" : false,
7783
"ok" : 1,
7884
"$clusterTime" : {
79-
"clusterTime" : Timestamp(1510716515, 1),
85+
"clusterTime" : Timestamp({t:1510716515, i: 1}),
8086
"signature" : {
8187
"hash" : BinData(0,"B2ViX7XLzFLS5Fl9XEuFXbwKIM4="),
8288
"keyId" : NumberLong("6488045157173166092")
8389
}
8490
},
85-
"operationTime" : Timestamp(1510716515, 1)
91+
"operationTime" : Timestamp({t: 1510716515, i: 1})
8692
}
8793

8894
The response from :dbcommand:`shardingState` when used with a
@@ -93,13 +99,13 @@ The response from :dbcommand:`shardingState` when used with a
9399
{
94100
"enabled" : false,
95101
"ok" : 1,
96-
"operationTime" : Timestamp(1510767613, 1),
102+
"operationTime" : Timestamp({t: 1510767613, i: 1}),
97103
"$gleStats" : {
98-
"lastOpTime" : Timestamp(0, 0),
104+
"lastOpTime" : Timestamp({t: 0, i: 0}),
99105
"electionId" : ObjectId("7fffffff0000000000000001")
100106
},
101107
"$clusterTime" : {
102-
"clusterTime" : Timestamp(1510767613, 1),
108+
"clusterTime" : Timestamp({t: 1510767613, i: 1}),
103109
"signature" : {
104110
"hash" : BinData(0,"IwBZ4SZjIMI5NdM62NObV/R31GM="),
105111
"keyId" : NumberLong("6488693018630029321")

0 commit comments

Comments
 (0)