~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzlebinlog.cc

  • Committer: Jay Pipes
  • Date: 2008-07-17 17:44:14 UTC
  • mfrom: (177 drizzle)
  • mto: This revision was merged to the branch mainline in revision 182.
  • Revision ID: jay@mysql.com-20080717174414-sm1e9agb2fjw2ncz
Merged in from trunk.

Made following changes:

libdrizzle/
  client.c
  * Removed DBUG symbols entirely
  * Removed mysql_debug() calls and command line options
  libdrizzle.c
  * Removed DBUG symbols
include/my_sys.h
  * Removed MY_DONT_FREE_DBUG symbol (used in my_end())
mysys/my_init.h
  * Removed MY_DONT_FREE_DBUG symbol (used in my_end())

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
#define MYSQL_CLIENT
32
32
#undef MYSQL_SERVER
 
33
#include <my_time.h>
33
34
#include <my_global.h>
34
 
#include "client_priv.h"
35
 
#include <my_time.h>
 
35
#include <my_sys.h>
 
36
#include <m_string.h>
 
37
#include <drizzle.h>
 
38
#include <errmsg.h>
 
39
#include <my_getopt.h>
36
40
/* That one is necessary for defines of OPTION_NO_FOREIGN_KEY_CHECKS etc */
37
41
#include "mysql_priv.h" 
38
42
#include "log_event.h"
39
43
#include "sql_common.h"
40
44
 
 
45
 
 
46
enum options_drizzlebinlog
 
47
{
 
48
  OPT_CHARSETS_DIR=256, OPT_BASE64_OUTPUT_MODE,
 
49
  OPT_DEBUG_CHECK, OPT_DEBUG_INFO, OPT_MYSQL_PROTOCOL,
 
50
  OPT_SERVER_ID, OPT_SET_CHARSET, OPT_START_DATETIME,
 
51
  OPT_START_POSITION, OPT_STOP_DATETIME, OPT_STOP_POSITION,
 
52
  OPT_OPEN_FILES_LIMIT
 
53
};
 
54
 
41
55
#define BIN_LOG_HEADER_SIZE     4
42
56
#define PROBE_HEADER_LEN        (EVENT_LEN_OFFSET+4)
43
57
 
430
444
  ptr= fname + target_dir_name_len;
431
445
  memcpy(ptr,bname,blen);
432
446
  ptr+= blen;
433
 
  ptr+= my_sprintf(ptr, (ptr, "-%x", file_id));
 
447
  ptr+= sprintf(ptr, "-%x", file_id);
434
448
 
435
449
  if ((file= create_unique_file(fname,ptr)) < 0)
436
450
  {
1971
1985
  free_defaults(defaults_argv);
1972
1986
  my_free_open_file_info();
1973
1987
  load_processor.destroy();
1974
 
  /* We cannot free DBUG, it is used in global destructors after exit(). */
1975
 
  my_end(my_end_arg | MY_DONT_FREE_DBUG);
 
1988
  my_end(my_end_arg);
1976
1989
 
1977
1990
  exit(retval == ERROR_STOP ? 1 : 0);
1978
1991
}