mongodb 3.0 global lock when updating a single document -


looking @ different mongodb operations found out mongodb 3.0 , wt engine, generating many different locks , upgrading global lock following:

{         "desc" : "conn4981286",         "threadid" : "0x113f133400",         "connectionid" : 4981286,         "opid" : -371204669,         "active" : true,         "secs_running" : 0,         "microsecs_running" : numberlong(377),         "op" : "update",         "ns" : "xxx",         "query" : {             "_id" : objectid("56c82738ccb2d079eec4867c")         },         "client" : "xxx",         "numyields" : 0,         "locks" : {             "global" : "w",             "local" : "w",             "database" : "w",             "collection" : "w"         },         "waitingforlock" : false,         "lockstats" : {             "global" : {                 "acquirecount" : {                     "r" : numberlong(2),                     "w" : numberlong(2)                 }             },             "database" : {                 "acquirecount" : {                     "w" : numberlong(2)                 }             },             "collection" : {                 "acquirecount" : {                     "w" : numberlong(1)                 }             },             "oplog" : {                 "acquirecount" : {                     "w" : numberlong(1)                 }             }         }     }, 

why update generate of these locks? thanks!


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -