From 249e4c59f4e6b98a6109225f953639de4743bf6c Mon Sep 17 00:00:00 2001 From: Kaloian Manassiev Date: Thu, 8 Jan 2015 13:02:32 -0500 Subject: SERVER-15614 Lock statistics for db.serverStatus.locks --- src/mongo/db/concurrency/lock_manager_defs.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mongo/db/concurrency/lock_manager_defs.h') diff --git a/src/mongo/db/concurrency/lock_manager_defs.h b/src/mongo/db/concurrency/lock_manager_defs.h index 7c93ee55dbd..77bec0d433f 100644 --- a/src/mongo/db/concurrency/lock_manager_defs.h +++ b/src/mongo/db/concurrency/lock_manager_defs.h @@ -212,6 +212,11 @@ namespace mongo { // Type to uniquely identify a given locker object typedef uint64_t LockerId; + // Hardcoded resource id for the oplog collection, which is special-cased both for resource + // acquisition purposes and for statistics reporting. + extern const ResourceId resourceIdLocalDB; + extern const ResourceId resourceIdOplog; + /** * Interface on which granted lock requests will be notified. See the contract for the notify -- cgit v1.2.1