2009-09-26 06:49:49 +02:00
|
|
|
/* Copyright (C) 2007 Google Inc.
|
|
|
|
Copyright (C) 2008 MySQL AB
|
2014-02-17 13:49:04 +01:00
|
|
|
Use is subject to license terms
|
2009-09-26 06:49:49 +02:00
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; version 2 of the License.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
2019-05-11 20:29:06 +02:00
|
|
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */
|
2009-09-26 06:49:49 +02:00
|
|
|
|
|
|
|
|
2017-06-18 05:42:16 +02:00
|
|
|
#include <my_global.h>
|
2009-09-26 06:49:49 +02:00
|
|
|
#include "semisync.h"
|
|
|
|
|
2017-11-25 17:54:42 +01:00
|
|
|
const unsigned char Repl_semi_sync_base::k_packet_magic_num= 0xef;
|
|
|
|
const unsigned char Repl_semi_sync_base::k_packet_flag_sync= 0x01;
|
2009-09-26 06:49:49 +02:00
|
|
|
|
|
|
|
|
2017-11-25 17:54:42 +01:00
|
|
|
const unsigned long Trace::k_trace_general= 0x0001;
|
|
|
|
const unsigned long Trace::k_trace_detail= 0x0010;
|
|
|
|
const unsigned long Trace::k_trace_net_wait= 0x0020;
|
|
|
|
const unsigned long Trace::k_trace_function= 0x0040;
|
2009-09-26 06:49:49 +02:00
|
|
|
|
2017-11-25 17:54:42 +01:00
|
|
|
const unsigned char Repl_semi_sync_base::k_sync_header[2]=
|
|
|
|
{Repl_semi_sync_base::k_packet_magic_num, 0};
|