Skip to content

Commit abbff37

Browse files
committed
MDEV-13564 follow-up: Harden an assertion
mlog_write_initial_log_record_low(): Do not allow the MLOG_TRUNCATE record to be written.
1 parent 9d9a225 commit abbff37

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

storage/innobase/include/mtr0log.ic

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*****************************************************************************
22

33
Copyright (c) 1995, 2016, Oracle and/or its affiliates. All Rights Reserved.
4-
Copyright (c) 2017, MariaDB Corporation.
4+
Copyright (c) 2017, 2019, MariaDB Corporation.
55

66
This program is free software; you can redistribute it and/or modify it under
77
the terms of the GNU General Public License as published by the Free Software
@@ -187,7 +187,6 @@ mlog_write_initial_log_record_low(
187187
|| type == MLOG_FILE_CREATE2
188188
|| type == MLOG_FILE_RENAME2
189189
|| type == MLOG_INDEX_LOAD
190-
|| type == MLOG_TRUNCATE
191190
|| type == MLOG_FILE_WRITE_CRYPT_DATA
192191
|| mtr->is_named_space(space_id));
193192

0 commit comments

Comments
 (0)