List:Commits« Previous MessageNext Message »
From:U-ROWVWADEjas Date:September 14 2007 4:04pm
Subject:bk commit into 6.0-falcon tree (jas:1.2597)
View as plain text  
Below is the list of changes that have just been committed into a local
6.0-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-09-14 10:04:05-04:00, jas@rowvwade. +1 -0
  Fix variable scope problem.

  storage/falcon/MemFreeBlock.cpp@stripped, 2007-09-14 10:03:58-04:00, jas@rowvwade. +2 -1
    Fix variable scope problem.

diff -Nrup a/storage/falcon/MemFreeBlock.cpp b/storage/falcon/MemFreeBlock.cpp
--- a/storage/falcon/MemFreeBlock.cpp	2007-09-14 09:47:23 -04:00
+++ b/storage/falcon/MemFreeBlock.cpp	2007-09-14 10:03:58 -04:00
@@ -74,10 +74,11 @@ void MemFreeBlock::insert(MemFreeBlock *
 	newNode->larger = NULL;
 	newNode->smaller = NULL;
 	newNode->balance = 0;
+	MemFreeBlock *node = this;
 	
 	// Find insertion point and insert new node as leaf
 	
-	for (MemFreeBlock *node = this; node;)
+	while (node)
 		if (newNode->memHeader.length < node->memHeader.length)
 			{
 			if (node->smaller)
Thread
bk commit into 6.0-falcon tree (jas:1.2597)U-ROWVWADEjas14 Sep