summaryrefslogtreecommitdiffstats
path: root/extra/mariabackup/common_engine.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 13:22:53 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 13:22:53 +0000
commit347c164c35eddab388009470e6848cb361ac93f8 (patch)
tree2c0c44eac690f510bb0a35b2a13b36d606b77b6b /extra/mariabackup/common_engine.h
parentReleasing progress-linux version 1:10.11.7-4~progress7.99u1. (diff)
downloadmariadb-347c164c35eddab388009470e6848cb361ac93f8.tar.xz
mariadb-347c164c35eddab388009470e6848cb361ac93f8.zip
Merging upstream version 1:10.11.8.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'extra/mariabackup/common_engine.h')
-rw-r--r--extra/mariabackup/common_engine.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/extra/mariabackup/common_engine.h b/extra/mariabackup/common_engine.h
new file mode 100644
index 00000000..6f5d8062
--- /dev/null
+++ b/extra/mariabackup/common_engine.h
@@ -0,0 +1,39 @@
+#pragma once
+#include "my_global.h"
+#include "backup_mysql.h"
+#include "datasink.h"
+#include "thread_pool.h"
+#include "xtrabackup.h"
+
+#include <unordered_set>
+#include <string>
+#include <vector>
+
+namespace common_engine {
+
+class BackupImpl;
+
+class Backup {
+ public:
+ Backup(const char *datadir_path, ds_ctxt_t *datasink,
+ std::vector<MYSQL *> &con_pool, ThreadPool &thread_pool);
+ ~Backup();
+ Backup (Backup &&other) = delete;
+ Backup & operator= (Backup &&other) = delete;
+ Backup(const Backup &) = delete;
+ Backup & operator= (const Backup &) = delete;
+ bool scan(
+ const std::unordered_set<table_key_t> &exclude_tables,
+ std::unordered_set<table_key_t> *out_processed_tables,
+ bool no_lock, bool collect_log_and_stats);
+ bool copy_log_tables(bool finalize);
+ bool copy_stats_tables();
+ bool wait_for_finish();
+ bool close_log_tables();
+ void set_post_copy_table_hook(const post_copy_table_hook_t &hook);
+ private:
+ BackupImpl *m_backup_impl;
+};
+
+} // namespace common_engine
+