From 17f5a177bb88c57c740749d3ca87373f0c867b85 Mon Sep 17 00:00:00 2001 From: Kaloian Manassiev Date: Wed, 4 Jun 2014 16:58:51 -0400 Subject: SERVER-13797 Remove Client::getContext and related --- src/mongo/dbtests/documentsourcetests.cpp | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'src/mongo/dbtests/documentsourcetests.cpp') diff --git a/src/mongo/dbtests/documentsourcetests.cpp b/src/mongo/dbtests/documentsourcetests.cpp index 58b0f957906..6972e8d7262 100644 --- a/src/mongo/dbtests/documentsourcetests.cpp +++ b/src/mongo/dbtests/documentsourcetests.cpp @@ -295,36 +295,6 @@ namespace DocumentSourceTests { mutable boost::condition _condition; }; - /** A writer client will be registered for the lifetime of an object of this class. */ - class WriterClientScope { - public: - WriterClientScope() : - _state( Initial ), - _dummyWriter( stdx::bind( &WriterClientScope::runDummyWriter, this ) ) { - _state.await( Ready ); - } - ~WriterClientScope() { - // Terminate the writer thread even on exception. - _state.set( Finished ); - DESTRUCTOR_GUARD( _dummyWriter.join() ); - } - private: - enum State { - Initial, - Ready, - Finished - }; - void runDummyWriter() { - Client::initThread( "dummy writer" ); - scoped_ptr a( new Acquiring( 0 , cc().lockState() ) ); - _state.set( Ready ); - _state.await( Finished ); - a.reset(0); - cc().shutdown(); - } - PendingValue _state; - boost::thread _dummyWriter; - }; /** Test coalescing a limit into a cursor */ class LimitCoalesce : public Base { -- cgit v1.2.1