summaryrefslogtreecommitdiff
path: root/src/mongo/db/introspect.cpp
diff options
context:
space:
mode:
authorMartin Bligh <mbligh@mongodb.com>2015-11-11 17:01:03 -0500
committerMartin Bligh <mbligh@mongodb.com>2015-11-11 17:01:03 -0500
commit5dd9558ed687faa62037cd0f9774a7bd45c62b84 (patch)
treed781826b203621e59354db824bcce15262daca67 /src/mongo/db/introspect.cpp
parent273aca8cdff4e23f62244b2537b72a12269b6370 (diff)
downloadmongo-5dd9558ed687faa62037cd0f9774a7bd45c62b84.tar.gz
SERVER-21276: Fix various issues with top
Diffstat (limited to 'src/mongo/db/introspect.cpp')
-rw-r--r--src/mongo/db/introspect.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/db/introspect.cpp b/src/mongo/db/introspect.cpp
index 8a6cca1dabb..1893f38b87e 100644
--- a/src/mongo/db/introspect.cpp
+++ b/src/mongo/db/introspect.cpp
@@ -80,7 +80,7 @@ void _appendUserInfo(const CurOp& c, BSONObjBuilder& builder, AuthorizationSessi
} // namespace
-void profile(OperationContext* txn, int op) {
+void profile(OperationContext* txn, NetworkOp op) {
// Initialize with 1kb at start in order to avoid realloc later
BufBuilder profileBufBuilder(1024);
@@ -148,8 +148,9 @@ void profile(OperationContext* txn, int op) {
}
}
} catch (const AssertionException& assertionEx) {
- warning() << "Caught Assertion while trying to profile " << opToString(op) << " against "
- << CurOp::get(txn)->getNS() << ": " << assertionEx.toString() << endl;
+ warning() << "Caught Assertion while trying to profile " << networkOpToString(op)
+ << " against " << CurOp::get(txn)->getNS() << ": " << assertionEx.toString()
+ << endl;
}
}