mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 10:31:54 +01:00
MDEV-22166: Fix cmake -DPLUGIN_PARTITION=NO
mysql_write_frm(): Correctly enclose code inside
#ifdef WITH_PARTITION_STORAGE_ENGINE
so that cmake -DPLUGIN_PARTITION=NO builds can succeed.
This was broken in
commit b7bba721ee
.
This commit is contained in:
parent
92f7d008ab
commit
91fe87c7a8
1 changed files with 3 additions and 3 deletions
|
@ -722,10 +722,10 @@ bool mysql_write_frm(ALTER_PARTITION_PARAM_TYPE *lpt, uint flags)
|
|||
char path[FN_REFLEN+1];
|
||||
char shadow_path[FN_REFLEN+1];
|
||||
char shadow_frm_name[FN_REFLEN+1];
|
||||
char bak_path[FN_REFLEN+1];
|
||||
char bak_frm_name[FN_REFLEN+1];
|
||||
char frm_name[FN_REFLEN+1];
|
||||
#ifdef WITH_PARTITION_STORAGE_ENGINE
|
||||
char bak_path[FN_REFLEN+1];
|
||||
char bak_frm_name[FN_REFLEN+1];
|
||||
char *part_syntax_buf;
|
||||
uint syntax_len;
|
||||
partition_info *part_info= lpt->part_info;
|
||||
|
@ -872,8 +872,8 @@ bool mysql_write_frm(ALTER_PARTITION_PARAM_TYPE *lpt, uint flags)
|
|||
CHF_RENAME_FLAG))
|
||||
DBUG_RETURN(TRUE);
|
||||
}
|
||||
#else /* !WITH_PARTITION_STORAGE_ENGINE */
|
||||
DBUG_ASSERT(!(flags & WFRM_WRITE_EXTRACTED));
|
||||
#else /* !WITH_PARTITION_STORAGE_ENGINE */
|
||||
DBUG_ASSERT(!(flags & WFRM_BACKUP_ORIGINAL));
|
||||
#endif /* !WITH_PARTITION_STORAGE_ENGINE */
|
||||
if (flags & WFRM_INSTALL_SHADOW)
|
||||
|
|
Loading…
Add table
Reference in a new issue