From 963cd167225361eba208e9b6e1d738611eac1e54 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 4 Mar 2008 21:47:07 +0100 Subject: [PATCH] Fixed excessive assertion reported in BUG#35031 "Using maria-block-size != 8192 makes Maria crash or say "error 174"" storage/maria/ma_create.c: fixed excessive assertion --- storage/maria/ma_create.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/maria/ma_create.c b/storage/maria/ma_create.c index 16f6d4e874d..e99bbe8970e 100644 --- a/storage/maria/ma_create.c +++ b/storage/maria/ma_create.c @@ -75,7 +75,7 @@ int maria_create(const char *name, enum data_file_type datafile_type, DBUG_PRINT("enter", ("keys: %u columns: %u uniques: %u flags: %u", keys, columns, uniques, flags)); - DBUG_ASSERT(maria_block_size && maria_block_size % IO_SIZE == 0); + DBUG_ASSERT(maria_block_size && maria_block_size % MARIA_MIN_KEY_BLOCK_LENGTH == 0); LINT_INIT(dfile); LINT_INIT(file);