This overflows the lockdep table when there are too many PGs. This
code is static so I'm not worried about new locking bugs.
Signed-off-by: Sage Weil <sage@redhat.com>
};
public:
- string access_lock_name;
RWLock access_lock;
/// Type of returned paths
typedef ceph::shared_ptr<Path> IndexedPath;
virtual int prep_delete() { return 0; }
CollectionIndex(const coll_t& collection):
- access_lock_name ("CollectionIndex::access_lock::" + collection.to_str()),
- access_lock(access_lock_name.c_str()) {}
+ access_lock("CollectionIndex::access_lock", true, false) {}
/*
* Pre-hash the collection, this collection should map to a PG folder.