Commit 8e04cdb2 authored by unknown's avatar unknown

Maria: fixes for build failures in pushbuild. Comments, fixing of function names.


mysys/mf_pagecache.c:
  comments fixing. More comments.
  pagecache_ulock_block->page_unlock_block
sql/mysqld.cc:
  MyISAM is always enabled so Maria needs have_maria
  which MyISAM does not need. This should fix a link failure in pushbuild
storage/Makefile.am:
  force myisam to be built before maria (will not be needed when
  Maria does not depend on MyISAM anymore)
parent b860539e
......@@ -523,13 +523,13 @@ static int ___pagecache_pthread_cond_signal(pthread_cond_t *cond);
/*
Read page from the disk
Write page to the disk
SYNOPSIS
pagecache_fwrite()
pagecache - page cache pointer
filedesc - pagecache file descriptor structure
buffer - buffer in which we will read
buffer - buffer which we will write
type - page type (plain or with LSN)
flags - MYF() flags
......@@ -571,6 +571,10 @@ uint pagecache_fwrite(PAGECACHE *pagecache,
(pageno)<<(pagecache->shift), flags)
/*
next_power(value) is 2 at the power of (1+floor(log2(value)));
e.g. next_power(2)=4, next_power(3)=4.
*/
static uint next_power(uint value)
{
uint old_value= 1;
......@@ -2167,9 +2171,9 @@ my_bool pagecache_lock_block(PAGECACHE *pagecache,
DBUG_RETURN(0);
}
void pagecache_ulock_block(PAGECACHE_BLOCK_LINK *block)
void pagecache_unlock_block(PAGECACHE_BLOCK_LINK *block)
{
DBUG_ENTER("pagecache_ulock_block");
DBUG_ENTER("pagecache_unlock_block");
BLOCK_INFO(block);
DBUG_ASSERT(block->status & BLOCK_WRLOCK);
block->status&= ~BLOCK_WRLOCK;
......@@ -2234,7 +2238,7 @@ my_bool pagecache_make_lock_and_pin(PAGECACHE *pagecache,
Removes writelog and puts read lock (which is nothing in our
implementation)
*/
pagecache_ulock_block(block);
pagecache_unlock_block(block);
case PAGECACHE_LOCK_READ_UNLOCK: /* read -> free */
case PAGECACHE_LOCK_LEFT_READLOCKED: /* read -> read */
#ifndef DBUG_OFF
......@@ -2247,7 +2251,8 @@ my_bool pagecache_make_lock_and_pin(PAGECACHE *pagecache,
if (lock == PAGECACHE_LOCK_WRITE_TO_READ)
{
pagecache_change_lock(block, 0);
} else if (lock == PAGECACHE_LOCK_WRITE_UNLOCK ||
}
else if (lock == PAGECACHE_LOCK_WRITE_UNLOCK ||
lock == PAGECACHE_LOCK_READ_UNLOCK)
{
pagecache_remove_lock(block);
......@@ -2422,8 +2427,8 @@ void pagecache_unlock_page(PAGECACHE *pagecache,
pagecache_pthread_mutex_lock(&pagecache->cache_lock);
/*
As soon as we keep lock cache can be used, and we have lock bacause want
aunlock.
As soon as we keep lock cache can be used, and we have lock because want
to unlock.
*/
DBUG_ASSERT(pagecache->can_be_used);
......@@ -2891,7 +2896,7 @@ my_bool pagecache_delete_page(PAGECACHE *pagecache,
link= get_present_hash_link(pagecache, file, pageno, &unused_start);
if (!link)
{
DBUG_PRINT("info", ("There is no fuch page in the cache"));
DBUG_PRINT("info", ("There is no such page in the cache"));
DBUG_RETURN(0);
}
block= link->block;
......
......@@ -8108,6 +8108,7 @@ void refresh_status(THD *thd)
#undef have_federated_db
#undef have_partition_db
#undef have_blackhole_db
#undef have_maria
SHOW_COMP_OPTION have_innodb= SHOW_OPTION_NO;
SHOW_COMP_OPTION have_ndbcluster= SHOW_OPTION_NO;
......@@ -8117,6 +8118,7 @@ SHOW_COMP_OPTION have_csv_db= SHOW_OPTION_NO;
SHOW_COMP_OPTION have_federated_db= SHOW_OPTION_NO;
SHOW_COMP_OPTION have_partition_db= SHOW_OPTION_NO;
SHOW_COMP_OPTION have_blackhole_db= SHOW_OPTION_NO;
SHOW_COMP_OPTION have_maria= SHOW_OPTION_NO;
#ifndef WITH_INNOBASE_STORAGE_ENGINE
uint innobase_flush_log_at_trx_commit;
......
......@@ -20,7 +20,12 @@ AUTOMAKE_OPTIONS = foreign
# These are built from source in the Docs directory
EXTRA_DIST =
SUBDIRS = @mysql_se_dirs@
# Until we remove fulltext-related references from Maria to MyISAM
# MyISAM must be built before Maria, which is not the case by default
# because of alphabetical order
# So we put myisam first; this is very ugly regarding plugins' logic
# but it works, and we'll remove it soon.
SUBDIRS = myisam @mysql_se_dirs@
# Don't update the files from bitkeeper
%::SCCS/s.%
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment