static void tc_wal_print(struct tnt_xlog_header_v11 *hdr, struct tnt_request *r) { printf("%s lsn: %"PRIu64", time: %f, len: %"PRIu32"\n", tc_query_type(r->h.type), hdr->lsn, hdr->tm, hdr->len); switch (r->h.type) { case TNT_OP_INSERT: tc_print_tuple(&r->r.insert.t); break; case TNT_OP_DELETE: tc_print_tuple(&r->r.del.t); break; case TNT_OP_UPDATE: tc_print_tuple(&r->r.update.t); break; case TNT_OP_CALL: tc_print_tuple(&r->r.call.t); break; } }
static char *tc_query_op(struct tnt_reply *r) { return tc_query_type(r->op); }