diff options
author | Eliot Horowitz <eliot@10gen.com> | 2014-06-10 09:30:11 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2014-06-10 17:30:35 -0400 |
commit | d722cd36f36ec4b8e6c1d51d993c5fb1706747a8 (patch) | |
tree | f175bb18ebfa48d33efff85cd3fa3f2dd45d178b /src/mongo/db | |
parent | 6537dc777512d093a489cb1db99e8db8cf50b914 (diff) | |
download | mongo-d722cd36f36ec4b8e6c1d51d993c5fb1706747a8.tar.gz |
SERVER-13635: remove Database:flushFiles as it was only used initial sync where it no longer is needed
Diffstat (limited to 'src/mongo/db')
-rw-r--r-- | src/mongo/db/catalog/database.cpp | 2 | ||||
-rw-r--r-- | src/mongo/db/catalog/database.h | 2 | ||||
-rw-r--r-- | src/mongo/db/repl/rs_initialsync.cpp | 9 |
3 files changed, 0 insertions, 13 deletions
diff --git a/src/mongo/db/catalog/database.cpp b/src/mongo/db/catalog/database.cpp index e1bcfaec0c3..a405ae0b6a4 100644 --- a/src/mongo/db/catalog/database.cpp +++ b/src/mongo/db/catalog/database.cpp @@ -202,8 +202,6 @@ namespace mongo { } } - void Database::flushFiles( bool sync ) { return getExtentManager()->flushFiles( sync ); } - bool Database::setProfilingLevel( OperationContext* txn, int newLevel , string& errmsg ) { if ( _profile == newLevel ) return true; diff --git a/src/mongo/db/catalog/database.h b/src/mongo/db/catalog/database.h index c8a40213baa..58e0637d41a 100644 --- a/src/mongo/db/catalog/database.h +++ b/src/mongo/db/catalog/database.h @@ -81,8 +81,6 @@ namespace mongo { */ bool setProfilingLevel( OperationContext* txn, int newLevel , std::string& errmsg ); - void flushFiles( bool sync ); - /** * @return true if ns is part of the database * ns=foo.bar, db=foo returns true diff --git a/src/mongo/db/repl/rs_initialsync.cpp b/src/mongo/db/repl/rs_initialsync.cpp index 4e5524c1567..20885f39e2c 100644 --- a/src/mongo/db/repl/rs_initialsync.cpp +++ b/src/mongo/db/repl/rs_initialsync.cpp @@ -323,12 +323,6 @@ namespace repl { lastH = 0; log() << "replSet cleaning up [1]" << rsLog; - { - OperationContextImpl txn; // XXX? - Client::WriteContext cx(&txn, "local."); - cx.ctx().db()->flushFiles(true); - } - log() << "replSet cleaning up [2]" << rsLog; log() << "replSet initial sync failed will try again" << endl; @@ -473,7 +467,6 @@ namespace repl { { Client::WriteContext cx(&txn, "local."); - cx.ctx().db()->flushFiles(true); try { log() << "replSet set minValid=" << minValid["ts"]._opTime().toString() << rsLog; } @@ -485,8 +478,6 @@ namespace repl { // Clear the initial sync flag. theReplSet->clearInitialSyncFlag(); - - cx.ctx().db()->flushFiles(true); } { boost::unique_lock<boost::mutex> lock(theReplSet->initialSyncMutex); |