MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Sergey Vojtovich Date:August 1 2006 4:09pm
Subject:bk commit into 4.1 tree (svoj:1.2532) BUG#20060
View as plain text  
Below is the list of changes that have just been committed into a local
4.1 repository of svoj. When svoj does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository

ChangeSet@stripped, 2006-08-01 21:09:29+05:00, svoj@stripped +1 -0
  BUG#20060 - mysqld option "--flush " doesn't work for update statement
  Problem described in this bug report affects MyISAM tables only.
  Running mysqld --flush instructs mysqld to sync all changes to disk
  after each SQL statement. It worked well for INSERT and DELETE
  statements, but it did sync for UPDATE only in case if there was
  index change (change of colum that has an index). If no updated column
  has an index, data wasn't synced to disk.
  This fix makes UPDATE statement to sync data to disk even if there is
  no index change (that is only data change) and mysqld is run with
  --flush option.

  myisam/mi_update.c@stripped, 2006-08-01 21:09:24+05:00, svoj@stripped +1 -1
    Every myisam function that updates myisam table must end with
    call to _mi_writeinfo(). If operation (second param of
    _mi_writeinfo()) is not 0 it sets share->changed to 1, that is
    flags that data has changed. If operation is 0, this function
    equals to no-op in this case.
    mi_update() must always pass !0 value as operation, since even if
    there is no index change there could be data change.

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	svoj
# Host:
# Root:	/home/svoj/devel/mysql/BUG20060/mysql-4.1

--- 1.16/myisam/mi_update.c	2006-08-01 21:09:36 +05:00
+++ 1.17/myisam/mi_update.c	2006-08-01 21:09:36 +05:00
@@ -168,7 +168,7 @@
-  VOID(_mi_writeinfo(info,key_changed ?  WRITEINFO_UPDATE_KEYFILE : 0));
+  VOID(_mi_writeinfo(info, WRITEINFO_UPDATE_KEYFILE));
   allow_break();				/* Allow SIGHUP & SIGINT */
   if (info->invalidator != 0)
bk commit into 4.1 tree (svoj:1.2532) BUG#20060Sergey Vojtovich1 Aug