You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.2 KiB

  1. /* Copyright (C) 2007 Google Inc.
  2. Copyright (C) 2008 MySQL AB
  3. This program is free software; you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation; version 2 of the License.
  6. This program is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. GNU General Public License for more details.
  10. You should have received a copy of the GNU General Public License
  11. along with this program; if not, write to the Free Software
  12. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
  13. #include "semisync.h"
  14. const unsigned char ReplSemiSyncBase::kPacketMagicNum = 0xef;
  15. const unsigned char ReplSemiSyncBase::kPacketFlagSync = 0x01;
  16. const unsigned long Trace::kTraceGeneral = 0x0001;
  17. const unsigned long Trace::kTraceDetail = 0x0010;
  18. const unsigned long Trace::kTraceNetWait = 0x0020;
  19. const unsigned long Trace::kTraceFunction = 0x0040;
  20. const char ReplSemiSyncBase::kSyncHeader[2] =
  21. {ReplSemiSyncBase::kPacketMagicNum, 0};