'Adds the container db represented by broker to the list of synced
containers.
:param broker: An instance of ContainerBroker representing the
container to add.'

def add_synced_container(self, broker):

    sync_file = self._container_to_synced_container_path(broker.db_file)
    stat = None
    try:
        stat = os.stat(sync_file)
    except OSError as oserr:
        if (oserr.errno != errno.ENOENT):
            raise oserr
    if (stat is not None):
        return
    sync_path = os.path.dirname(sync_file)
    mkdirs(sync_path)
    try:
        os.symlink(broker.db_file, sync_file)
    except OSError as oserr:
        if ((oserr.errno != errno.EEXIST) or (not os.path.islink(sync_file))):
            raise oserr
