Changeset - 74229a30b418
[Not reviewed]
default
0 1 0
Drew Perttula - 8 years ago 2017-05-25 06:14:38
drewp@bigasterisk.com
fix addlPrefixes init in syncedgraph
Ignore-this: c66b11bec43c0e240800eb61c3bddba
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
light9/rdfdb/syncedgraph.py
Show inline comments
 
@@ -117,24 +117,26 @@ class SyncedGraph(CurrentStateGraphApi, 
 
                       perfect=True)
 
        except ValueError as e:
 
            log.error(e)
 
            self.sendFailed(None)
 
            return
 
        log.debug('runDepsOnNewPatch')
 
        self.runDepsOnNewPatch(p)
 
        log.debug('sendPatch')
 
        self._sender.sendPatch(p).addErrback(self.sendFailed)
 
        log.debug('patch is done %s', debugKey)
 

	
 
    def suggestPrefixes(self, prefixes):
 
        if not hasattr(self, 'addlPrefixes'):
 
            self.addlPrefixes = {}
 
        self.addlPrefixes.update(prefixes)
 

	
 
    def sendFailed(self, result):
 
        """
 
        we asked for a patch to be queued and sent to the master, and
 
        that ultimately failed because of a conflict
 
        """
 
        log.warn("sendFailed")
 
        self.resync()
 
        
 
        #i think we should receive back all the pending patches,
 
        #do a resync here,
0 comments (0 inline, 0 general)