summaryrefslogtreecommitdiff
path: root/src/mongo/shell/mongo.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/shell/mongo.js')
-rw-r--r--src/mongo/shell/mongo.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/shell/mongo.js b/src/mongo/shell/mongo.js
index 9025d6bd963..5ed8ababdf6 100644
--- a/src/mongo/shell/mongo.js
+++ b/src/mongo/shell/mongo.js
@@ -160,7 +160,7 @@ Mongo.prototype._gossipLogicalTime = function(obj) {
obj = Object.assign({}, obj);
const clusterTime = this.getClusterTime();
if (clusterTime) {
- obj["$logicalTime"] = clusterTime;
+ obj["$clusterTime"] = clusterTime;
}
return obj;
};
@@ -173,8 +173,8 @@ Mongo.prototype._setLogicalTimeFromReply = function(res) {
if (res.hasOwnProperty("operationTime")) {
this.setOperationTime(res["operationTime"]);
}
- if (res.hasOwnProperty("$logicalTime")) {
- this.setClusterTime(res["$logicalTime"]);
+ if (res.hasOwnProperty("$clusterTime")) {
+ this.setClusterTime(res["$clusterTime"]);
}
};