Example #1
0
def request_to_start_cm( id, port ):
    ret = util.start_confmaster( id, port )
    if ret is not 0:
        util.log('failed to start_confmaster. id:%d, port:%d' % (id, port))
        return -1
    else:
        util.log('succeeded to start_confmaster. id:%d, port:%d' % (id, port))

    return 0