~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/drizzle_com.h

  • Committer: Grant Limberg
  • Date: 2008-08-12 21:13:01 UTC
  • mto: (322.1.1 codestyle)
  • mto: This revision was merged to the branch mainline in revision 324.
  • Revision ID: grant@glsoftware.net-20080812211301-ym3wsowelkgp16s2
renamed all instances of MYSQL_ to DRIZZLE_

Show diffs side-by-side

added added

removed removed

Lines of Context:
367
367
/* Shutdown/kill enums and constants */ 
368
368
 
369
369
/* Bits for THD::killable. */
370
 
#define MYSQL_SHUTDOWN_KILLABLE_CONNECT    (unsigned char)(1 << 0)
371
 
#define MYSQL_SHUTDOWN_KILLABLE_TRANS      (unsigned char)(1 << 1)
372
 
#define MYSQL_SHUTDOWN_KILLABLE_LOCK_TABLE (unsigned char)(1 << 2)
373
 
#define MYSQL_SHUTDOWN_KILLABLE_UPDATE     (unsigned char)(1 << 3)
 
370
#define DRIZZLE_SHUTDOWN_KILLABLE_CONNECT    (unsigned char)(1 << 0)
 
371
#define DRIZZLE_SHUTDOWN_KILLABLE_TRANS      (unsigned char)(1 << 1)
 
372
#define DRIZZLE_SHUTDOWN_KILLABLE_LOCK_TABLE (unsigned char)(1 << 2)
 
373
#define DRIZZLE_SHUTDOWN_KILLABLE_UPDATE     (unsigned char)(1 << 3)
374
374
 
375
375
enum drizzle_enum_shutdown_level {
376
376
  /*
380
380
  */
381
381
  SHUTDOWN_DEFAULT = 0,
382
382
  /* wait for existing connections to finish */
383
 
  SHUTDOWN_WAIT_CONNECTIONS= MYSQL_SHUTDOWN_KILLABLE_CONNECT,
 
383
  SHUTDOWN_WAIT_CONNECTIONS= DRIZZLE_SHUTDOWN_KILLABLE_CONNECT,
384
384
  /* wait for existing trans to finish */
385
 
  SHUTDOWN_WAIT_TRANSACTIONS= MYSQL_SHUTDOWN_KILLABLE_TRANS,
 
385
  SHUTDOWN_WAIT_TRANSACTIONS= DRIZZLE_SHUTDOWN_KILLABLE_TRANS,
386
386
  /* wait for existing updates to finish (=> no partial MyISAM update) */
387
 
  SHUTDOWN_WAIT_UPDATES= MYSQL_SHUTDOWN_KILLABLE_UPDATE,
 
387
  SHUTDOWN_WAIT_UPDATES= DRIZZLE_SHUTDOWN_KILLABLE_UPDATE,
388
388
  /* flush InnoDB buffers and other storage engines' buffers*/
389
 
  SHUTDOWN_WAIT_ALL_BUFFERS= (MYSQL_SHUTDOWN_KILLABLE_UPDATE << 1),
 
389
  SHUTDOWN_WAIT_ALL_BUFFERS= (DRIZZLE_SHUTDOWN_KILLABLE_UPDATE << 1),
390
390
  /* don't flush InnoDB buffers, flush other storage engines' buffers*/
391
 
  SHUTDOWN_WAIT_CRITICAL_BUFFERS= (MYSQL_SHUTDOWN_KILLABLE_UPDATE << 1) + 1,
 
391
  SHUTDOWN_WAIT_CRITICAL_BUFFERS= (DRIZZLE_SHUTDOWN_KILLABLE_UPDATE << 1) + 1,
392
392
  /* Now the 2 levels of the KILL command */
393
393
  KILL_QUERY= 254,
394
394
  KILL_CONNECTION= 255
407
407
/* options for mysql_set_option */
408
408
enum enum_drizzle_set_option
409
409
{
410
 
  MYSQL_OPTION_MULTI_STATEMENTS_ON,
411
 
  MYSQL_OPTION_MULTI_STATEMENTS_OFF
 
410
  DRIZZLE_OPTION_MULTI_STATEMENTS_ON,
 
411
  DRIZZLE_OPTION_MULTI_STATEMENTS_OFF
412
412
};
413
413
 
414
414
#define net_new_transaction(net) ((net)->pkt_nr=0)
525
525
#endif
526
526
 
527
527
#define NULL_LENGTH UINT32_MAX /* For net_store_length */
528
 
#define MYSQL_STMT_HEADER       4
529
 
#define MYSQL_LONG_DATA_HEADER  6
 
528
#define DRIZZLE_STMT_HEADER       4
 
529
#define DRIZZLE_LONG_DATA_HEADER  6
530
530
 
531
531
#endif