Robert
unread,May 10, 2012, 2:38:12 PM5/10/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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)
}
},
...
}