1
0
mirror of https://github.com/MariaDB/server.git synced 2026-10-23 18:49:29 +03:00
Files
mariadb/client/mysqlbinlog-engine.h
Kristian Nielsen cfe1e125be MDEV-39582: mariadb-binlog missing sanity checks for ibb files
The binlog page size is currently fixed at 16k. Don't attempt to read
using a different page size found in the file header, the code doesn't
support it.

Signed-off-by: Kristian Nielsen <knielsen@knielsen-hq.org>
2026-05-14 13:46:25 +02:00

34 lines
1.3 KiB
C

/* Copyright (c) 2025, Kristian Nielsen.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */
#include <stdint.h>
#include <atomic>
#include "handler_binlog_reader.h"
static constexpr uint32_t BINLOG_HEADER_PAGE_SIZE= 512;
static constexpr uint32_t BINLOG_PAGE_SIZE= ((uint32_t)1 << 14);
extern const char *INNODB_BINLOG_MAGIC;
extern handler_binlog_reader *get_binlog_reader_innodb();
extern bool open_engine_binlog(handler_binlog_reader *reader,
ulonglong start_position,
const char *filename, IO_CACHE *opened_cache);
/* Shared functions defined in mysqlbinlog.cc */
extern void error(const char *format, ...) ATTRIBUTE_FORMAT(printf, 1, 2);