From 5ce5284eb4992cff0318a5b25c1e45c8ec826c6b Mon Sep 17 00:00:00 2001 From: prabatuty Date: Mon, 28 Mar 2011 14:23:03 +0000 Subject: [PATCH] reverting back the changes. causes core dump --- src/storage/Database.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/Database.cxx b/src/storage/Database.cxx index 26a678ee..2488230f 100644 --- a/src/storage/Database.cxx +++ b/src/storage/Database.cxx @@ -470,7 +470,7 @@ DbRetVal Database::createSystemDatabaseChunk(AllocType type, size_t size, int id chunk->setChunkID(id); chunk->setAllocType(type); printDebug(DM_Database, "Creating System Database Chunk:%d Size:%d",id, chunk->allocSize_); - if (chunk->allocSize_ >= (PAGE_SIZE -sizeof(PageInfo))) + if (chunk->allocSize_ > PAGE_SIZE) { int multiple = os::floor(chunk->allocSize_ / PAGE_SIZE); int offset = ((multiple + 1) * PAGE_SIZE); -- 2.11.4.GIT