summaryrefslogtreecommitdiffstats
path: root/storage/perfschema/rpl_gtid.h
blob: 6d9ecb0ea5fc128207fb03fb4a02d1ed637bde33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef STORAGE_PERFSCHEMA_RPL_GTID_INCLUDED
#define STORAGE_PERFSCHEMA_RPL_GTID_INCLUDED

struct TABLE;

#include "../../sql/rpl_gtid.h"

class Gtid_specification: public rpl_gtid
{
public:
  size_t to_string(char *buf)
  {
    return my_snprintf(buf, GTID_MAX_STR_LENGTH, "%u-%u-%llu",
                       domain_id, server_id, seq_no);
  }
};
#endif