summaryrefslogtreecommitdiffstats
path: root/extra/mariabackup/read_filt.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/read_filt.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/read_filt.h')
-rw-r--r--extra/mariabackup/read_filt.h29
1 files changed, 7 insertions, 22 deletions
diff --git a/extra/mariabackup/read_filt.h b/extra/mariabackup/read_filt.h
index 51150705..caf8ac56 100644
--- a/extra/mariabackup/read_filt.h
+++ b/extra/mariabackup/read_filt.h
@@ -25,42 +25,27 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA
#ifndef XB_READ_FILT_H
#define XB_READ_FILT_H
-#include "changed_page_bitmap.h"
-
-typedef uint32_t space_id_t;
+#include <cstdint>
+#include <cstddef>
struct xb_fil_cur_t;
/* The read filter context */
struct xb_read_filt_ctxt_t {
- ib_int64_t offset; /*!< current file offset */
- ib_int64_t data_file_size; /*!< data file size */
+ int64_t offset; /*!< current file offset */
+ int64_t data_file_size; /*!< data file size */
size_t buffer_capacity;/*!< read buffer capacity */
- space_id_t space_id; /*!< space id */
- /* The following fields used only in bitmap filter */
- /* Move these to union if any other filters are added in future */
- xb_page_bitmap_range *bitmap_range; /*!< changed page bitmap range
- iterator for space_id */
- ulint page_size; /*!< page size */
- ulint filter_batch_end;/*!< the ending page id of the
- current changed page block in
- the bitmap */
- /** TODO: remove this default constructor */
- xb_read_filt_ctxt_t() : page_size(0) {}
};
/* The read filter */
struct xb_read_filt_t {
void (*init)(xb_read_filt_ctxt_t* ctxt,
- const xb_fil_cur_t* cursor,
- ulint space_id);
+ const xb_fil_cur_t* cursor);
void (*get_next_batch)(xb_read_filt_ctxt_t* ctxt,
- ib_int64_t* read_batch_start,
- ib_int64_t* read_batch_len);
- void (*deinit)(xb_read_filt_ctxt_t* ctxt);
+ int64_t* read_batch_start,
+ int64_t* read_batch_len);
};
extern xb_read_filt_t rf_pass_through;
-extern xb_read_filt_t rf_bitmap;
#endif