summaryrefslogtreecommitdiff
path: root/src/mongo/db/lockstate.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2012-06-12 07:57:38 -0400
committerEliot Horowitz <eliot@10gen.com>2012-06-12 07:57:38 -0400
commitc2ce73b66eef5c47fca71b3a0d1608b07c58c63e (patch)
treed1370c5994f1e1226166933740c6f598f3cdd19a /src/mongo/db/lockstate.cpp
parent16aedcce6cb912bb2459b4316fcf54f370466536 (diff)
downloadmongo-c2ce73b66eef5c47fca71b3a0d1608b07c58c63e.tar.gz
SERVER-4628 - use ^ instead of . and fix test for currentop
Diffstat (limited to 'src/mongo/db/lockstate.cpp')
-rwxr-xr-xsrc/mongo/db/lockstate.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/lockstate.cpp b/src/mongo/db/lockstate.cpp
index ac29d38301e..0b518df367f 100755
--- a/src/mongo/db/lockstate.cpp
+++ b/src/mongo/db/lockstate.cpp
@@ -109,20 +109,20 @@ namespace mongo {
char buf[2];
buf[0] = _threadState;
buf[1] = 0;
- b.append(".", buf);
+ b.append("^", buf);
}
if( _nestableCount ) {
string s = "?";
if( _whichNestable == Lock::local )
- s = ".local";
+ s = "^local";
else if( _whichNestable == Lock::admin )
- s = ".admin";
+ s = "^admin";
b.append(s, kind(_nestableCount));
}
if( _otherCount ) {
WrapperForRWLock *k = _otherLock;
if( k ) {
- string s = ".";
+ string s = "^";
s += k->name();
b.append(s, kind(_otherCount));
}