diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2016-04-07 09:41:39 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@mongodb.com> | 2016-04-07 09:41:39 -0400 |
commit | 07c2cd5b87e44e5f95fe4f6bdfef5fb6dd012bce (patch) | |
tree | a5e24cd9f1088a4c0a789a6e36611fbb736222c3 /src/mongo/scripting/utils.cpp | |
parent | b44fd5925e6b2899a81e4c1b7f13087a665f8c6e (diff) | |
download | mongo-07c2cd5b87e44e5f95fe4f6bdfef5fb6dd012bce.tar.gz |
SERVER-23547 Make the multiversion concept of "latest" more precise.
This supports multiversion tests involving subversions, like 3.2.1 compared to 3.2 latest.
Diffstat (limited to 'src/mongo/scripting/utils.cpp')
-rw-r--r-- | src/mongo/scripting/utils.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/mongo/scripting/utils.cpp b/src/mongo/scripting/utils.cpp index e6673460e97..10d8fcfe020 100644 --- a/src/mongo/scripting/utils.cpp +++ b/src/mongo/scripting/utils.cpp @@ -1,4 +1,3 @@ -// utils.cpp /* * Copyright (C) 2010 10gen Inc. * @@ -29,7 +28,6 @@ #include "mongo/scripting/engine.h" #include "mongo/util/md5.hpp" -#include "mongo/util/version.h" namespace mongo { @@ -48,10 +46,6 @@ static BSONObj native_hex_md5(const BSONObj& args, void* data) { return BSON("" << digestToString(d)); } -static BSONObj native_version(const BSONObj& args, void* data) { - return BSON("" << versionString); -} - static BSONObj native_sleep(const mongo::BSONObj& args, void* data) { uassert(16259, "sleep takes a single numeric argument -- sleep(milliseconds)", @@ -69,7 +63,7 @@ static BSONObj native_sleep(const mongo::BSONObj& args, void* data) { void installGlobalUtils(Scope& scope) { scope.injectNative("hex_md5", native_hex_md5); - scope.injectNative("version", native_version); scope.injectNative("sleep", native_sleep); } -} + +} // namespace mongo |