def getCapsuleKeysFromLocal(self):
        tupsByKey = {}
        for tup, data in self.db.db.getAllTroveInfo(
                trove._TROVEINFO_TAG_CAPSULE):
            capsuleInfo = trove.TroveCapsule(data)
            if capsuleInfo.type() != self.kind:
                continue
            key = self._getCapsuleKeyFromInfo(capsuleInfo)
            tupsByKey.setdefault(key, set()).add(tup)
        return tupsByKey
Leaves transaction management for a running thread. A dirty flag is carried
dataset/ETHPy150Open sassoftware/conary/conary/local/capsules.py/BaseCapsulePlugin.getCapsuleKeysFromLocal--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/db/backends/__init__.py/BaseDatabaseWrapper.leave_transaction_management