mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 01:04:19 +01:00
4cff617c25
---------------------------------------------------------------------- ChangeSet@1.2571, 2008-04-08 12:30:06+02:00, vvaintroub@wva. +122 -0 Bug#32082 : definition of VOID in my_global.h conflicts with Windows SDK headers VOID macro is now removed. Its usage is replaced with void cast. In some cases, where cast does not make much sense (pthread_*, printf, hash_delete, my_seek), cast is ommited.
33 lines
1.1 KiB
C
33 lines
1.1 KiB
C
/* Copyright (C) 2000-2001 MySQL AB
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; version 2 of the License.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
|
|
|
/* Check if somebody has changed table since last check. */
|
|
|
|
#include "myisamdef.h"
|
|
|
|
/* Return 0 if table isn't changed */
|
|
|
|
int mi_is_changed(MI_INFO *info)
|
|
{
|
|
int result;
|
|
DBUG_ENTER("mi_is_changed");
|
|
if (fast_mi_readinfo(info))
|
|
DBUG_RETURN(-1);
|
|
(void) _mi_writeinfo(info,0);
|
|
result=(int) info->data_changed;
|
|
info->data_changed=0;
|
|
DBUG_PRINT("exit",("result: %d",result));
|
|
DBUG_RETURN(result);
|
|
}
|