summaryrefslogtreecommitdiff
path: root/src/mongo/tools/sniffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/tools/sniffer.cpp')
-rw-r--r--src/mongo/tools/sniffer.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mongo/tools/sniffer.cpp b/src/mongo/tools/sniffer.cpp
index d3be0dbefda..bc5dc2bd5de 100644
--- a/src/mongo/tools/sniffer.cpp
+++ b/src/mongo/tools/sniffer.cpp
@@ -44,7 +44,6 @@
#undef max
#endif
-#include <boost/shared_ptr.hpp>
#include <ctype.h>
#include <errno.h>
#include <iostream>
@@ -72,7 +71,7 @@
#include "mongo/util/text.h"
using namespace std;
-using boost::shared_ptr;
+using std::shared_ptr;
using mongo::Message;
using mongo::DbMessage;
using mongo::BSONObj;
@@ -164,9 +163,9 @@ struct Connection {
map< Connection, bool > seen;
map< Connection, int > bytesRemainingInMessage;
-map< Connection, boost::shared_ptr< BufBuilder > > messageBuilder;
+map< Connection, std::shared_ptr< BufBuilder > > messageBuilder;
map< Connection, unsigned > expectedSeq;
-map< Connection, boost::shared_ptr<DBClientConnection> > forwarder;
+map< Connection, std::shared_ptr<DBClientConnection> > forwarder;
map< Connection, long long > lastCursor;
map< Connection, map< long long, long long > > mapCursor;
@@ -364,7 +363,7 @@ void processMessage( Connection& c , Message& m ) {
if ( !forwardAddress.empty() ) {
if ( m.operation() != mongo::opReply ) {
- boost::shared_ptr<DBClientConnection> conn = forwarder[ c ];
+ std::shared_ptr<DBClientConnection> conn = forwarder[ c ];
if ( !conn ) {
conn.reset(new DBClientConnection( true ));
conn->connect( forwardAddress );