Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  backup_mysql.h   Sprache: C

 

#ifndef XTRABACKUP_BACKUP_MYSQL_H
#define XTRABACKUP_BACKUP_MYSQL_H

#include <mysql.h>
#include <cstdint>
#include <string>
#include <unordered_set>
#include "datasink.h"

/* MariaDB version */
extern ulong mysql_server_version;

/* server capabilities */
extern bool have_changed_page_bitmaps;
extern bool have_lock_wait_timeout;
extern bool have_galera_enabled;
extern bool have_multi_threaded_slave;
extern bool have_gtid_slave;


/* History on server */
extern time_t history_start_time;
extern time_t history_end_time;
extern time_t history_lock_time;


extern bool sql_thread_started;
extern char *mysql_slave_position;
extern char *mysql_binlog_position;
extern char *mysql_binlog_file;
extern char *buffer_pool_filename;

/** connection to mysql server */
extern MYSQL *mysql_connection;

void
capture_tool_command(int argc, char **argv);

bool
select_history();

void
backup_cleanup();

bool
get_mysql_vars(MYSQL *connection);

MYSQL *
xb_mysql_connect();

MYSQL_RES *
xb_mysql_query(MYSQL *connection, const char *query, bool use_result,
  bool die_on_error = true);

void
unlock_all(MYSQL *connection);

bool
write_current_binlog_file(ds_ctxt *datasink, MYSQL *connection);

bool
write_binlog_info(ds_ctxt *datasink, MYSQL *connection);

bool
write_xtrabackup_info(ds_ctxt *datasink,
                      MYSQL *connection, const char * filename, bool history,
                      bool stream);

bool
write_backup_config_file(ds_ctxt *datasink);

bool
lock_binlog_maybe(MYSQL *connection);

bool
lock_for_backup_stage_start(MYSQL *connection);

bool
lock_for_backup_stage_flush(MYSQL *connection);

bool
lock_for_backup_stage_block_ddl(MYSQL *connection);

bool
lock_for_backup_stage_commit(MYSQL *connection);

bool backup_lock(MYSQL *con, const char *table_name);
bool backup_unlock(MYSQL *con);

std::unordered_set<std::string> get_tables_in_use(MYSQL *con);

bool
wait_for_safe_slave(MYSQL *connection);

bool
write_galera_info(ds_ctxt *datasink, MYSQL *connection);

bool
write_slave_info(ds_ctxt *datasink, MYSQL *connection);

ulonglong get_current_lsn(MYSQL *connection);

uint64_t get_log_flushed_lsn(MYSQL *connection) noexcept;
#endif

Messung V0.5 in Prozent
C=97 H=100 G=98

¤ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet am  2026-10-08) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1126438
#Domains=1867298