List:Commits« Previous MessageNext Message »
From:U-ROWVWADEjas Date:April 18 2007 12:02am
Subject:bk commit into 5.1-falcon tree (jas:1.2610)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1-falcon repository of . When  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
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2007-04-17 18:02:35-04:00, jas@rowvwade. +1 -0
  Fix storage engine Table::update to get correct old record
  when handling "select for update".

  storage/falcon/Table.cpp@stripped, 2007-04-17 18:02:29-04:00, jas@rowvwade. +9 -1
    Fix storage engine Table::update to get correct old record
    when handling "select for update".

# 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:	jas
# Host:	rowvwade.
# Root:	D:/MySQL/mysql-5.1-falcon

--- 1.91/storage/falcon/Table.cpp	2007-04-17 18:02:54 -04:00
+++ 1.92/storage/falcon/Table.cpp	2007-04-17 18:02:54 -04:00
@@ -2442,7 +2442,15 @@
 	if (!candidate)
 		return;
 
-	Record *oldRecord = candidate->fetchVersion(transaction);
+	Record *oldRecord = candidate;
+	
+	if (candidate->getTransaction() == transaction)
+		{
+		if (candidate->state = recLock)
+			oldRecord = oldRecord->getPriorVersion();
+		}
+	else
+		oldRecord = candidate->fetchVersion(transaction);
 
 	if (!oldRecord)
 		{
Thread
bk commit into 5.1-falcon tree (jas:1.2610)U-ROWVWADEjas18 Apr