~clint-fewbar/ubuntu/lucid/mysql-dfsg-5.1/increase-killtimeout

« back to all changes in this revision

Viewing changes to storage/ndb/include/mgmapi/ndb_logevent.h

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2009-12-08 03:05:40 UTC
  • mfrom: (1.1.4 upstream) (0.1.15 sid)
  • Revision ID: james.westby@ubuntu.com-20091208030540-l5xq57znyuy9ctgt
Tags: 5.1.41-3ubuntu1
* Merge from debian testing.  Remaining changes:
  - debian/control:
    + Don't provide a libmysqlclient15-dev package as long as there
      are packages still build-depending on libmysqlclient15-dev and
      mysql-dfsg-5.0 is in the archive.
    + Lower mailx from a Recommends to a Suggests to avoid pulling in a
      full MTA on all installs of mysql-server (LP: #259477)
  - debian/rules:
    + added -fno-strict-aliasing to CFLAGS to get around mysql testsuite
      build failures.
  - debian/additions/debian-start.inc.sh: support ANSI mode (LP: #310211)
  - Add AppArmor profile:
    + debian/apparmor-profile: apparmor profile
    + debian/rules, debian/mysql-server-5.1.files: install apparmor profile.
    + debian/mysql-server-5.1.dirs: add etc/apparmor.d/fore-complain
    + debian/mysql-server-5.1.postrm: remove symlink in force-complain/ on
      purge.
    + debian/mysql-server-5.1.README.Debian: add apparmor documentation.
    + debian/additions/my.cnf: Add warning about apparmor. (LP: #201799)
    + debian/mysql-esrver-5.1.postinst: reload apparmor profiles
  - debian/additions/my.cfn: remove language options. Error message files are
    located in a different direction in Mysql 5.0. Setting the language option
    to use /usr/share/mysql/english breaks 5.0. Both 5.0 and 5.1 use a 
    default value that works. (LP: #316974)
  - debian/mysql-server-5.1.postinst: Clear out the second password when
    setting up mysql. (LP: #344816)
  - mysql-server-core-5.1 package for files needed by Akonadi:
    + debian/control: create mysql-server-core-5.1 package
    + debian/mysql-server-core-5.1.files, debian/mysql-server-5.1.files:
      move core mysqld files to mysql-server-core-5.1 package.
  - debian/libmysqlclient16.symbols.amd64: remove amd64 symbols as it has
    not been correcly generated in Debian.
  - Add Apport hook: (LP: #354188):
    + debian/mysql-server-5.1.py: apport package hook
    + debian/mysql-server-5.1.files, debian/rules: install apport package hook
  - debian/addtions/my.cnf:
    + drop old_password option.
    + fix commentened logging options to use general_log and general_log_file.
  - Don't upgrade if there is an ndb management node configured (LP: #413792)
  - Set thread stack size to 192K rather than 128K. 128K is only useful on 
    systems with < 64M RAM and causes stack overrides with some SQL commands.
    See http://dev.mysql.com/doc/refman/5.1/en/server-system-varriables.html
    for more details. (LP: #426919)
  - Convert to upstart:
    + Add mysql-server-5.1.mysql.upstart
    + Dropped debian/mysql-server-5.1.mysql.init,
      debian/additions/mysqld_safe_syslog.cnf
    + debian/additions/my.cnf:
      * Removed pid declaration
      * Set up error logging to /var/log/mysql since we're not piping anything
        around logger anymore
    + Remove references to mysqld_safe in these files:
      * debian/rules, mysql-server-5.1.logcheck.ignore.paranoid
        mysql-server-5.1.logcheck.ignore.workstation, 
        mysql-server-5.1.logcheck.ignore.server
    + debian/mysql-server-5.1.postinst:
      * Replace calls to /etc/init.d with regular upstart calls
      * Remove reference to mysqld_safe
    + Dropped debian/patches/38_scripts_mysqld_safe.sh_signals.dpatch:
  - Dropped already merged upstream:
    + debian/{control,rules}: add and enable hardening build for PIE.
   

Show diffs side-by-side

added added

removed removed

Lines of Context:
272
272
#endif
273
273
  };
274
274
 
 
275
  struct ndb_logevent_Connected {
 
276
    unsigned node;
 
277
  };
 
278
  
 
279
  struct ndb_logevent_Disconnected {
 
280
    unsigned node;
 
281
  };
 
282
 
 
283
  struct ndb_logevent_CommunicationClosed {
 
284
    unsigned node;
 
285
  };
 
286
 
 
287
  struct ndb_logevent_CommunicationOpened {
 
288
    unsigned node;
 
289
  };
 
290
  
 
291
  struct ndb_logevent_ConnectedApiVersion {
 
292
    unsigned node;
 
293
    unsigned version;
 
294
  };
 
295
 
 
296
  /* CHECKPOINT */
 
297
  struct ndb_logevent_GlobalCheckpointStarted {
 
298
    unsigned gci;
 
299
  };
 
300
  struct ndb_logevent_GlobalCheckpointCompleted {
 
301
    unsigned gci;
 
302
  };
 
303
  struct ndb_logevent_LocalCheckpointStarted {
 
304
    unsigned lci;
 
305
    unsigned keep_gci;
 
306
    unsigned restore_gci;
 
307
  };
 
308
  struct ndb_logevent_LocalCheckpointCompleted {
 
309
    unsigned lci;
 
310
  };
 
311
  struct ndb_logevent_LCPStoppedInCalcKeepGci {
 
312
    unsigned data;
 
313
  };
 
314
  struct ndb_logevent_LCPFragmentCompleted {
 
315
    unsigned node;
 
316
    unsigned table_id;
 
317
    unsigned fragment_id;
 
318
  };
 
319
  struct ndb_logevent_UndoLogBlocked {
 
320
    unsigned acc_count;
 
321
    unsigned tup_count;
 
322
  };
 
323
 
 
324
  /* STARTUP */
 
325
  struct ndb_logevent_NDBStartStarted {
 
326
    unsigned version;
 
327
  };
 
328
  struct ndb_logevent_NDBStartCompleted {
 
329
    unsigned version;
 
330
  };
 
331
  struct ndb_logevent_STTORRYRecieved {
 
332
  };
 
333
  struct ndb_logevent_StartPhaseCompleted {
 
334
    unsigned phase;
 
335
    unsigned starttype;
 
336
  };
 
337
  struct ndb_logevent_CM_REGCONF {
 
338
    unsigned own_id;
 
339
    unsigned president_id;
 
340
    unsigned dynamic_id;
 
341
  };
 
342
  struct ndb_logevent_CM_REGREF {
 
343
    unsigned own_id;
 
344
    unsigned other_id;
 
345
    unsigned cause;
 
346
  };
 
347
  struct ndb_logevent_FIND_NEIGHBOURS {
 
348
    unsigned own_id;
 
349
    unsigned left_id;
 
350
    unsigned right_id;
 
351
    unsigned dynamic_id;
 
352
  };
 
353
  struct ndb_logevent_NDBStopStarted {
 
354
    unsigned stoptype;
 
355
  };
 
356
  struct ndb_logevent_NDBStopCompleted {
 
357
    unsigned action;
 
358
    unsigned signum;
 
359
  };
 
360
  struct ndb_logevent_NDBStopForced {
 
361
    unsigned action;
 
362
    unsigned signum;
 
363
    unsigned error;
 
364
    unsigned sphase;
 
365
    unsigned extra;
 
366
  };
 
367
  struct ndb_logevent_NDBStopAborted {
 
368
  };
 
369
  struct ndb_logevent_StartREDOLog {
 
370
    unsigned node;
 
371
    unsigned keep_gci;
 
372
    unsigned completed_gci;
 
373
    unsigned restorable_gci;
 
374
  };
 
375
  struct ndb_logevent_StartLog {
 
376
    unsigned log_part;
 
377
    unsigned start_mb;
 
378
    unsigned stop_mb;
 
379
    unsigned gci;
 
380
  };
 
381
  struct ndb_logevent_UNDORecordsExecuted {
 
382
    unsigned block;
 
383
    unsigned data1;
 
384
    unsigned data2;
 
385
    unsigned data3;
 
386
    unsigned data4;
 
387
    unsigned data5;
 
388
    unsigned data6;
 
389
    unsigned data7;
 
390
    unsigned data8;
 
391
    unsigned data9;
 
392
    unsigned data10;
 
393
  };
 
394
  
 
395
  /* NODERESTART */
 
396
  struct ndb_logevent_NR_CopyDict {
 
397
  };
 
398
  struct ndb_logevent_NR_CopyDistr {
 
399
  };
 
400
  struct ndb_logevent_NR_CopyFragsStarted {
 
401
    unsigned dest_node;
 
402
  };
 
403
  struct ndb_logevent_NR_CopyFragDone {
 
404
    unsigned dest_node;
 
405
    unsigned table_id;
 
406
    unsigned fragment_id;
 
407
  };
 
408
  struct ndb_logevent_NR_CopyFragsCompleted {
 
409
    unsigned dest_node;
 
410
  };
 
411
 
 
412
  struct ndb_logevent_NodeFailCompleted {
 
413
    unsigned block; /* 0 = all */
 
414
    unsigned failed_node;
 
415
    unsigned completing_node; /* 0 = all */
 
416
  };
 
417
  struct ndb_logevent_NODE_FAILREP {
 
418
    unsigned failed_node;
 
419
    unsigned failure_state;
 
420
  };
 
421
  struct ndb_logevent_ArbitState {
 
422
    unsigned code;                /* code & state << 16 */
 
423
    unsigned arbit_node;
 
424
    unsigned ticket_0;
 
425
    unsigned ticket_1;
 
426
    /* TODO */
 
427
  };
 
428
  struct ndb_logevent_ArbitResult {
 
429
    unsigned code;                /* code & state << 16 */
 
430
    unsigned arbit_node;
 
431
    unsigned ticket_0;
 
432
    unsigned ticket_1;
 
433
    /* TODO */
 
434
  };
 
435
  struct ndb_logevent_GCP_TakeoverStarted {
 
436
  };
 
437
  struct ndb_logevent_GCP_TakeoverCompleted {
 
438
  };
 
439
  struct ndb_logevent_LCP_TakeoverStarted {
 
440
  };
 
441
  struct ndb_logevent_LCP_TakeoverCompleted {
 
442
    unsigned state;
 
443
  };
 
444
 
 
445
  /* STATISTIC */
 
446
  struct ndb_logevent_TransReportCounters {
 
447
    unsigned trans_count;
 
448
    unsigned commit_count;
 
449
    unsigned read_count;
 
450
    unsigned simple_read_count;
 
451
    unsigned write_count;
 
452
    unsigned attrinfo_count;
 
453
    unsigned conc_op_count;
 
454
    unsigned abort_count;
 
455
    unsigned scan_count;
 
456
    unsigned range_scan_count;
 
457
  };
 
458
  struct ndb_logevent_OperationReportCounters {
 
459
    unsigned ops;
 
460
  };
 
461
  struct ndb_logevent_TableCreated {
 
462
    unsigned table_id;
 
463
  };
 
464
  struct ndb_logevent_JobStatistic {
 
465
    unsigned mean_loop_count;
 
466
  };
 
467
  struct ndb_logevent_SendBytesStatistic {
 
468
    unsigned to_node;
 
469
    unsigned mean_sent_bytes;
 
470
  };
 
471
  struct ndb_logevent_ReceiveBytesStatistic {
 
472
    unsigned from_node;
 
473
    unsigned mean_received_bytes;
 
474
  };
 
475
  struct ndb_logevent_MemoryUsage {
 
476
    int      gth;
 
477
    /* union is for compatibility backward.
 
478
     * page_size_kb member variable should be removed in the future
 
479
     */
 
480
    union {
 
481
      unsigned page_size_kb;
 
482
      unsigned page_size_bytes;
 
483
    };
 
484
    unsigned pages_used;
 
485
    unsigned pages_total;
 
486
    unsigned block;
 
487
  };
 
488
 
 
489
  /* ERROR */
 
490
  struct ndb_logevent_TransporterError {
 
491
    unsigned to_node;
 
492
    unsigned code;
 
493
  };
 
494
  struct ndb_logevent_TransporterWarning {
 
495
    unsigned to_node;
 
496
    unsigned code;
 
497
  };
 
498
  struct ndb_logevent_MissedHeartbeat {
 
499
    unsigned node;
 
500
    unsigned count;
 
501
  };
 
502
  struct ndb_logevent_DeadDueToHeartbeat {
 
503
    unsigned node;
 
504
  };
 
505
  struct ndb_logevent_WarningEvent {
 
506
    /* TODO */
 
507
  };
 
508
 
 
509
  /* INFO */
 
510
  struct ndb_logevent_SentHeartbeat {
 
511
    unsigned node;
 
512
  };
 
513
  struct ndb_logevent_CreateLogBytes {
 
514
    unsigned node;
 
515
  };
 
516
  struct ndb_logevent_InfoEvent {
 
517
    /* TODO */
 
518
  };
 
519
  struct ndb_logevent_EventBufferStatus {
 
520
    unsigned usage;
 
521
    unsigned alloc;
 
522
    unsigned max;
 
523
    unsigned apply_gci_l;
 
524
    unsigned apply_gci_h;
 
525
    unsigned latest_gci_l;
 
526
    unsigned latest_gci_h;
 
527
  };
 
528
 
 
529
  /** Log event data for @ref NDB_LE_BackupStarted */
 
530
  struct ndb_logevent_BackupStarted {
 
531
    unsigned starting_node;
 
532
    unsigned backup_id;
 
533
  };
 
534
  /** Log event data @ref NDB_LE_BackupFailedToStart */
 
535
  struct ndb_logevent_BackupFailedToStart {
 
536
    unsigned starting_node;
 
537
    unsigned error;
 
538
  };
 
539
  /** Log event data @ref NDB_LE_BackupCompleted */
 
540
  struct ndb_logevent_BackupCompleted {
 
541
    unsigned starting_node;
 
542
    unsigned backup_id; 
 
543
    unsigned start_gci;
 
544
    unsigned stop_gci;
 
545
    unsigned n_records; 
 
546
    unsigned n_log_records;
 
547
    unsigned n_bytes;
 
548
    unsigned n_log_bytes;
 
549
  };
 
550
  /** Log event data @ref NDB_LE_BackupAborted */
 
551
  struct ndb_logevent_BackupAborted {
 
552
    unsigned starting_node;
 
553
    unsigned backup_id;
 
554
    unsigned error;
 
555
  };
 
556
  /** Log event data @ref NDB_LE_SingleUser */
 
557
  struct ndb_logevent_SingleUser {
 
558
    unsigned type;
 
559
    unsigned node_id;
 
560
  };
 
561
  /** Log even data @ref NDB_LE_StartReport */
 
562
  struct ndb_logevent_StartReport {
 
563
    unsigned report_type;
 
564
    unsigned remaining_time;
 
565
    unsigned bitmask_size;
 
566
    unsigned bitmask_data[1];
 
567
  };
 
568
 
275
569
  /**
276
570
   * Structure to store and retrieve log event information.
277
571
   * @see @ref secSLogEvents
305
599
     */
306
600
    union {
307
601
      /* CONNECT */
308
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
309
 
      struct {
310
 
        unsigned node;
311
 
      } Connected;
312
 
 
313
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
314
 
      struct {
315
 
        unsigned node;
316
 
      } Disconnected;
317
 
 
318
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
319
 
      struct {
320
 
        unsigned node;
321
 
      } CommunicationClosed;
322
 
 
323
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
324
 
      struct {
325
 
        unsigned node;
326
 
      } CommunicationOpened;
327
 
 
328
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
329
 
      struct {
330
 
        unsigned node;
331
 
        unsigned version;
332
 
      } ConnectedApiVersion;
 
602
      struct ndb_logevent_Connected Connected;
 
603
      struct ndb_logevent_Disconnected Disconnected;
 
604
      struct ndb_logevent_CommunicationClosed CommunicationClosed;
 
605
      struct ndb_logevent_CommunicationOpened CommunicationOpened;
 
606
      struct ndb_logevent_ConnectedApiVersion ConnectedApiVersion;
333
607
 
334
608
      /* CHECKPOINT */
335
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
336
 
      struct {
337
 
        unsigned gci;
338
 
      } GlobalCheckpointStarted;
339
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
340
 
      struct {
341
 
        unsigned gci;
342
 
      } GlobalCheckpointCompleted;
343
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
344
 
      struct {
345
 
        unsigned lci;
346
 
        unsigned keep_gci;
347
 
        unsigned restore_gci;
348
 
      } LocalCheckpointStarted;
349
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
350
 
      struct {
351
 
        unsigned lci;
352
 
      } LocalCheckpointCompleted;
353
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
354
 
      struct {
355
 
        unsigned data;
356
 
      } LCPStoppedInCalcKeepGci;
357
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
358
 
      struct {
359
 
        unsigned node;
360
 
        unsigned table_id;
361
 
        unsigned fragment_id;
362
 
      } LCPFragmentCompleted;
363
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
364
 
      struct {
365
 
        unsigned acc_count;
366
 
        unsigned tup_count;
367
 
      } UndoLogBlocked;
 
609
      struct ndb_logevent_GlobalCheckpointStarted GlobalCheckpointStarted;
 
610
      struct ndb_logevent_GlobalCheckpointCompleted GlobalCheckpointCompleted;
 
611
      struct ndb_logevent_LocalCheckpointStarted LocalCheckpointStarted;
 
612
      struct ndb_logevent_LocalCheckpointCompleted LocalCheckpointCompleted;
 
613
      struct ndb_logevent_LCPStoppedInCalcKeepGci LCPStoppedInCalcKeepGci;
 
614
      struct ndb_logevent_LCPFragmentCompleted LCPFragmentCompleted;
 
615
      struct ndb_logevent_UndoLogBlocked UndoLogBlocked;
368
616
 
369
617
      /* STARTUP */
370
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
371
 
      struct {
372
 
        unsigned version;
373
 
      } NDBStartStarted;
374
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
375
 
      struct {
376
 
        unsigned version;
377
 
      } NDBStartCompleted;
378
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
379
 
      struct {
380
 
      } STTORRYRecieved;
381
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
382
 
      struct {
383
 
        unsigned phase;
384
 
        unsigned starttype;
385
 
      } StartPhaseCompleted;
386
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
387
 
      struct {
388
 
        unsigned own_id;
389
 
        unsigned president_id;
390
 
        unsigned dynamic_id;
391
 
      } CM_REGCONF;
392
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
393
 
      struct {
394
 
        unsigned own_id;
395
 
        unsigned other_id;
396
 
        unsigned cause;
397
 
      } CM_REGREF;
398
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
399
 
      struct {
400
 
        unsigned own_id;
401
 
        unsigned left_id;
402
 
        unsigned right_id;
403
 
        unsigned dynamic_id;
404
 
      } FIND_NEIGHBOURS;
405
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
406
 
      struct {
407
 
        unsigned stoptype;
408
 
      } NDBStopStarted;
409
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
410
 
      struct {
411
 
        unsigned action;
412
 
        unsigned signum;
413
 
      } NDBStopCompleted;
414
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
415
 
      struct {
416
 
        unsigned action;
417
 
        unsigned signum;
418
 
        unsigned error;
419
 
        unsigned sphase;
420
 
        unsigned extra;
421
 
      } NDBStopForced;
422
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
423
 
      struct {
424
 
      } NDBStopAborted;
425
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
426
 
      struct {
427
 
        unsigned node;
428
 
        unsigned keep_gci;
429
 
        unsigned completed_gci;
430
 
        unsigned restorable_gci;
431
 
      } StartREDOLog;
432
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
433
 
      struct {
434
 
        unsigned log_part;
435
 
        unsigned start_mb;
436
 
        unsigned stop_mb;
437
 
        unsigned gci;
438
 
      } StartLog;
439
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
440
 
      struct {
441
 
        unsigned block;
442
 
        unsigned data1;
443
 
        unsigned data2;
444
 
        unsigned data3;
445
 
        unsigned data4;
446
 
        unsigned data5;
447
 
        unsigned data6;
448
 
        unsigned data7;
449
 
        unsigned data8;
450
 
        unsigned data9;
451
 
        unsigned data10;
452
 
      } UNDORecordsExecuted;
 
618
      struct ndb_logevent_NDBStartStarted NDBStartStarted;
 
619
      struct ndb_logevent_NDBStartCompleted NDBStartCompleted;
 
620
      struct ndb_logevent_STTORRYRecieved STTORRYRecieved;
 
621
      struct ndb_logevent_StartPhaseCompleted StartPhaseCompleted;
 
622
      struct ndb_logevent_CM_REGCONF CM_REGCONF;
 
623
      struct ndb_logevent_CM_REGREF CM_REGREF;
 
624
      struct ndb_logevent_FIND_NEIGHBOURS FIND_NEIGHBOURS;
 
625
      struct ndb_logevent_NDBStopStarted NDBStopStarted;
 
626
      struct ndb_logevent_NDBStopCompleted NDBStopCompleted;
 
627
      struct ndb_logevent_NDBStopForced NDBStopForced;
 
628
      struct ndb_logevent_NDBStopAborted NDBStopAborted;
 
629
      struct ndb_logevent_StartREDOLog StartREDOLog;
 
630
      struct ndb_logevent_StartLog StartLog;
 
631
      struct ndb_logevent_UNDORecordsExecuted UNDORecordsExecuted;
453
632
  
454
633
      /* NODERESTART */
455
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
456
 
      struct {
457
 
      } NR_CopyDict;
458
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
459
 
      struct {
460
 
      } NR_CopyDistr;
461
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
462
 
      struct {
463
 
        unsigned dest_node;
464
 
      } NR_CopyFragsStarted;
465
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
466
 
      struct {
467
 
        unsigned dest_node;
468
 
        unsigned table_id;
469
 
        unsigned fragment_id;
470
 
      } NR_CopyFragDone;
471
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
472
 
      struct {
473
 
        unsigned dest_node;
474
 
      } NR_CopyFragsCompleted;
 
634
      struct ndb_logevent_NR_CopyDict NR_CopyDict;
 
635
      struct ndb_logevent_NR_CopyDistr NR_CopyDistr;
 
636
      struct ndb_logevent_NR_CopyFragsStarted NR_CopyFragsStarted;
 
637
      struct ndb_logevent_NR_CopyFragDone NR_CopyFragDone;
 
638
      struct ndb_logevent_NR_CopyFragsCompleted NR_CopyFragsCompleted;
475
639
 
476
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
477
 
      struct {
478
 
        unsigned block; /* 0 = all */
479
 
        unsigned failed_node;
480
 
        unsigned completing_node; /* 0 = all */
481
 
      } NodeFailCompleted;
482
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
483
 
      struct {
484
 
        unsigned failed_node;
485
 
        unsigned failure_state;
486
 
      } NODE_FAILREP;
487
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
488
 
      struct {
489
 
        unsigned code;                /* code & state << 16 */
490
 
        unsigned arbit_node;
491
 
        unsigned ticket_0;
492
 
        unsigned ticket_1;
493
 
        /* TODO */
494
 
      } ArbitState;
495
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
496
 
      struct {
497
 
        unsigned code;                /* code & state << 16 */
498
 
        unsigned arbit_node;
499
 
        unsigned ticket_0;
500
 
        unsigned ticket_1;
501
 
        /* TODO */
502
 
      } ArbitResult;
503
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
504
 
      struct {
505
 
      } GCP_TakeoverStarted;
506
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
507
 
      struct {
508
 
      } GCP_TakeoverCompleted;
509
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
510
 
      struct {
511
 
      } LCP_TakeoverStarted;
512
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
513
 
      struct {
514
 
        unsigned state;
515
 
      } LCP_TakeoverCompleted;
 
640
      struct ndb_logevent_NodeFailCompleted NodeFailCompleted;
 
641
      struct ndb_logevent_NODE_FAILREP NODE_FAILREP;
 
642
      struct ndb_logevent_ArbitState ArbitState;
 
643
      struct ndb_logevent_ArbitResult ArbitResult;
 
644
      struct ndb_logevent_GCP_TakeoverStarted GCP_TakeoverStarted;
 
645
      struct ndb_logevent_GCP_TakeoverCompleted GCP_TakeoverCompleted;
 
646
      struct ndb_logevent_LCP_TakeoverStarted LCP_TakeoverStarted;
 
647
      struct ndb_logevent_LCP_TakeoverCompleted LCP_TakeoverCompleted;
516
648
 
517
649
      /* STATISTIC */
518
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
519
 
      struct {
520
 
        unsigned trans_count;
521
 
        unsigned commit_count;
522
 
        unsigned read_count;
523
 
        unsigned simple_read_count;
524
 
        unsigned write_count;
525
 
        unsigned attrinfo_count;
526
 
        unsigned conc_op_count;
527
 
        unsigned abort_count;
528
 
        unsigned scan_count;
529
 
        unsigned range_scan_count;
530
 
      } TransReportCounters;
531
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
532
 
      struct {
533
 
        unsigned ops;
534
 
      } OperationReportCounters;
535
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
536
 
      struct {
537
 
        unsigned table_id;
538
 
      } TableCreated;
539
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
540
 
      struct {
541
 
        unsigned mean_loop_count;
542
 
      } JobStatistic;
543
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
544
 
      struct {
545
 
        unsigned to_node;
546
 
        unsigned mean_sent_bytes;
547
 
      } SendBytesStatistic;
548
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
549
 
      struct {
550
 
        unsigned from_node;
551
 
        unsigned mean_received_bytes;
552
 
      } ReceiveBytesStatistic;
553
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
554
 
      struct {
555
 
        int      gth;
556
 
        /* union is for compatibility backward.
557
 
         * page_size_kb member variable should be removed in the future
558
 
        */
559
 
        union {
560
 
          unsigned page_size_kb;
561
 
          unsigned page_size_bytes;
562
 
        };
563
 
        unsigned pages_used;
564
 
        unsigned pages_total;
565
 
        unsigned block;
566
 
      } MemoryUsage;
 
650
      struct ndb_logevent_TransReportCounters TransReportCounters;
 
651
      struct ndb_logevent_OperationReportCounters OperationReportCounters;
 
652
      struct ndb_logevent_TableCreated TableCreated;
 
653
      struct ndb_logevent_JobStatistic JobStatistic;
 
654
      struct ndb_logevent_SendBytesStatistic SendBytesStatistic;
 
655
      struct ndb_logevent_ReceiveBytesStatistic ReceiveBytesStatistic;
 
656
      struct ndb_logevent_MemoryUsage MemoryUsage;
567
657
 
568
658
      /* ERROR */
569
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
570
 
      struct {
571
 
        unsigned to_node;
572
 
        unsigned code;
573
 
      } TransporterError;
574
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
575
 
      struct {
576
 
        unsigned to_node;
577
 
        unsigned code;
578
 
      } TransporterWarning;
579
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
580
 
      struct {
581
 
        unsigned node;
582
 
        unsigned count;
583
 
      } MissedHeartbeat;
584
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
585
 
      struct {
586
 
        unsigned node;
587
 
      } DeadDueToHeartbeat;
588
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
589
 
      struct {
590
 
        /* TODO */
591
 
      } WarningEvent;
 
659
      struct ndb_logevent_TransporterError TransporterError;
 
660
      struct ndb_logevent_TransporterWarning TransporterWarning;
 
661
      struct ndb_logevent_MissedHeartbeat MissedHeartbeat;
 
662
      struct ndb_logevent_DeadDueToHeartbeat DeadDueToHeartbeat;
 
663
      struct ndb_logevent_WarningEvent WarningEvent;
592
664
 
593
665
      /* INFO */
594
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
595
 
      struct {
596
 
        unsigned node;
597
 
      } SentHeartbeat;
598
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
599
 
      struct {
600
 
        unsigned node;
601
 
      } CreateLogBytes;
602
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
603
 
      struct {
604
 
        /* TODO */
605
 
      } InfoEvent;
606
 
      /** Log event specific data for for corresponding NDB_LE_ log event */
607
 
      struct {
608
 
        unsigned usage;
609
 
        unsigned alloc;
610
 
        unsigned max;
611
 
        unsigned apply_gci_l;
612
 
        unsigned apply_gci_h;
613
 
        unsigned latest_gci_l;
614
 
        unsigned latest_gci_h;
615
 
      } EventBufferStatus;
 
666
      struct ndb_logevent_SentHeartbeat SentHeartbeat;
 
667
      struct ndb_logevent_CreateLogBytes CreateLogBytes;
 
668
      struct ndb_logevent_InfoEvent InfoEvent;
 
669
      struct ndb_logevent_EventBufferStatus EventBufferStatus;
616
670
 
617
671
      /** Log event data for @ref NDB_LE_BackupStarted */
618
 
      struct {
619
 
        unsigned starting_node;
620
 
        unsigned backup_id;
621
 
      } BackupStarted;
 
672
      struct ndb_logevent_BackupStarted BackupStarted;
622
673
      /** Log event data @ref NDB_LE_BackupFailedToStart */
623
 
      struct {
624
 
        unsigned starting_node;
625
 
        unsigned error;
626
 
      } BackupFailedToStart;
 
674
      struct ndb_logevent_BackupFailedToStart BackupFailedToStart;
627
675
      /** Log event data @ref NDB_LE_BackupCompleted */
628
 
      struct {
629
 
        unsigned starting_node;
630
 
        unsigned backup_id; 
631
 
        unsigned start_gci;
632
 
        unsigned stop_gci;
633
 
        unsigned n_records; 
634
 
        unsigned n_log_records;
635
 
        unsigned n_bytes;
636
 
        unsigned n_log_bytes;
637
 
      } BackupCompleted;
 
676
      struct ndb_logevent_BackupCompleted BackupCompleted;
638
677
      /** Log event data @ref NDB_LE_BackupAborted */
639
 
      struct {
640
 
        unsigned starting_node;
641
 
        unsigned backup_id;
642
 
        unsigned error;
643
 
      } BackupAborted;
 
678
      struct ndb_logevent_BackupAborted BackupAborted;
644
679
      /** Log event data @ref NDB_LE_SingleUser */
645
 
      struct {
646
 
        unsigned type;
647
 
        unsigned node_id;
648
 
      } SingleUser;
 
680
      struct ndb_logevent_SingleUser SingleUser;
649
681
      /** Log even data @ref NDB_LE_StartReport */
650
 
      struct {
651
 
        unsigned report_type;
652
 
        unsigned remaining_time;
653
 
        unsigned bitmask_size;
654
 
        unsigned bitmask_data[1];
655
 
      } StartReport;
 
682
      struct ndb_logevent_StartReport StartReport;
656
683
#ifndef DOXYGEN_FIX
657
684
    };
658
685
#else