serverStatus() output in version 2.1+ contains a field called "."

20 views
Skip to first unread message

Robert

unread,
May 10, 2012, 2:38:12 PM5/10/12
to mongodb-user
I have a 2.1.1 mongod server and I've noticed that when I run
serverStatus() there's a new field in the output called "locks". The
keys in the value of this field appear to be database names, but
there's one key that's just ".". First of all, what is this? "show
dbs" does not show a db called ".". Secondly, if it's a sentinel
value of some kind, would it be possible to use something other than
"."? We'd like to save away the output of serverStatus() as a
document in mongo, but we can't if it has any fields containing "."

> db.serverStatus()
{
...

"locks" : {
"." : {
"timeLocked" : {
"R" : NumberLong(0),
"W" : NumberLong(59537457)
},
"timeAcquiring" : {
"R" : NumberLong(29066607),
"W" : NumberLong(17135484),
"r" : NumberLong(269181),
"w" : NumberLong(1779422)
}
},
"admin" : {
"timeLocked" : {
"R" : NumberLong(0),
"W" : NumberLong(1620572)
},
"timeAcquiring" : {
"R" : NumberLong(522),
"W" : NumberLong(64179)
}
},
"local" : {
"timeLocked" : {
"R" : NumberLong(0),
"W" : NumberLong(1620572)
},
"timeAcquiring" : {
"R" : NumberLong(522),
"W" : NumberLong(64179)
}
},
...
}

Eliot Horowitz

unread,
May 10, 2012, 2:39:55 PM5/10/12
to mongod...@googlegroups.com
Yes - this will be changing in 2.2
(might already be in master)

What it is is for some server locks.
The whole stats structure is going to be changing in 2.1.2 to make it clearer.
> --
> You received this message because you are subscribed to the Google Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
>
Reply all
Reply to author
Forward
0 new messages