Example #1
0
 def deleteAllFKFromItems(self, itemss):
     key = '%s:%s_fk:' % (mclient._hostname, self._name)
     # _fklist = util.getallkeys(key, mclient.connection)
     _fklist = util.getAllKeysFromItms(key, itemss)
     for fk in _fklist:
         name = '%s_fk:%s' % (self._name, fk)
         fkmm = MFKMode(name)
         fkmm.mdelete()
Example #2
0
 def deleteAllFKFromItems(self,itemss):
     key = '%s:%s_fk:'%(mclient._hostname,self._name)
     # _fklist = util.getallkeys(key, mclient.connection)
     _fklist = util.getAllKeysFromItms(key,itemss)
     for fk in _fklist:
         name = '%s_fk:%s'%(self._name,fk)
         fkmm = MFKMode(name)
         fkmm.mdelete()
Example #3
0
    def checkAll(self):
        itemss = util.getAllItems(mclient.connection)

        key = '%s:%s:' % (mclient._hostname, self._name)
        _pklist = util.getAllKeysFromItms(key, itemss)
        # _pklist = util.getallkeys(key, mclient.connection)
        for pk in _pklist:
            mm = MMode(self._name + ':%s' % pk, self._pk)
            if not mm.IsEffective():
                mm.mdelete()
                continue
            if not mm.get('data'):
                continue
            mm.checkSync(timeout=self._timeout)
        self.deleteAllFKFromItems(itemss)
Example #4
0
    def checkAll(self):
        itemss = util.getAllItems(mclient.connection)

        key = '%s:%s:' % (mclient._hostname, self._name)
        _pklist = util.getAllKeysFromItms(key,itemss)
        # _pklist = util.getallkeys(key, mclient.connection)
        for pk in _pklist:
            mm = MMode(self._name+':%s' % pk, self._pk)
            if not mm.IsEffective():
                mm.mdelete()
                continue
            if not mm.get('data'):
                continue
            mm.checkSync(timeout=self._timeout)
        self.deleteAllFKFromItems(itemss)