summaryrefslogtreecommitdiff
path: root/src/mongo/s/grid.cpp
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2014-04-25 14:01:09 -0400
committerRandolph Tan <randolph@10gen.com>2014-05-01 16:45:31 -0400
commit3fd39a9fe002c4bdd762d7434fb244a5b153b018 (patch)
treee3e379524d0f96d5b0e46322c46bcb1ebebd4e11 /src/mongo/s/grid.cpp
parent2c9c7efd9431419ed19013bf5d6019c8af690404 (diff)
downloadmongo-3fd39a9fe002c4bdd762d7434fb244a5b153b018.tar.gz
SERVER-13704 write commands handles ClockSkewException differently from legacy writes
Diffstat (limited to 'src/mongo/s/grid.cpp')
-rw-r--r--src/mongo/s/grid.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/mongo/s/grid.cpp b/src/mongo/s/grid.cpp
index e37b3244a44..868a74124b6 100644
--- a/src/mongo/s/grid.cpp
+++ b/src/mongo/s/grid.cpp
@@ -589,18 +589,6 @@ namespace mongo {
return false;
}
- unsigned long long Grid::getNextOpTime() const {
- ScopedDbConnection conn(configServer.getPrimary().getConnString(), 30);
-
- BSONObj result;
- massert( 10421,
- "getoptime failed",
- conn->simpleCommand( "admin" , &result , "getoptime" ) );
- conn.done();
-
- return result["optime"]._numberLong();
- }
-
bool Grid::_isSpecialLocalDB( const string& dbName ) {
return ( dbName == "local" ) || ( dbName == "admin" ) || ( dbName == "config" );
}