Example #1
0
def is_ms_op_reply(line, words):
    ## could be read or write, need to identify in process_foo
    if utils.log_compare_without_len(words, osdtpl.ms_op_reply_words,
                                     osdtpl.ms_op_reply_idx_list):
        if utils.log_match(line, osdtpl.ms_op_reply_match_list):
            return True
    return False
Example #2
0
def is_op_commit(line, words):
    return utils.log_compare_without_len(words, osdtpl.op_commit_words,
                                         osdtpl.op_commit_idx_list)
Example #3
0
def is_dequeue_op_start(words):
    return utils.log_compare_without_len(words, osdtpl.dequeue_op_start_words,
                                         osdtpl.dequeue_op_start_idx_list)
Example #4
0
def is_enqueue_op(words):
    return utils.log_compare_without_len(words, osdtpl.enqueue_op_words,
                                         osdtpl.enqueue_op_idx_list)
Example #5
0
def is_subop_reply(line, words):
    if utils.log_compare_without_len(words, osdtpl.subop_reply_words,
                                     osdtpl.subop_reply_idx_list):
        if utils.log_match(line, osdtpl.subop_reply_match_list):
            return True
    return False