List:Commits« Previous MessageNext Message »
From:cpowers Date:April 26 2008 1:50am
Subject:bk commit into 6.0 tree (cpowers:1.2650) BUG#36330
View as plain text  
Below is the list of changes that have just been committed into a local
6.0 repository of cpowers.  When cpowers 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, 2008-04-25 18:50:01-05:00, cpowers@stripped +1 -0
  Bug #36330: Falcon DBT2 crash in Transaction::needToLock
  - Added syncPrior to RecordScavenge::inventoryRecord.

  storage/falcon/RecordScavenge.cpp@stripped, 2008-04-25 18:49:59-05:00, cpowers@stripped
+4 -0
    Added syncPrior to RecordScavenge::inventoryRecord

diff -Nrup a/storage/falcon/RecordScavenge.cpp b/storage/falcon/RecordScavenge.cpp
--- a/storage/falcon/RecordScavenge.cpp	2008-04-05 13:38:38 -05:00
+++ b/storage/falcon/RecordScavenge.cpp	2008-04-25 18:49:59 -05:00
@@ -20,6 +20,7 @@
 #include "Record.h"
 #include "Log.h"
 #include "MemMgr.h"
+#include "Sync.h"
 
 
 RecordScavenge::RecordScavenge(Database *db, TransId oldestTransaction, bool forced)
@@ -45,6 +46,9 @@ RecordScavenge::~RecordScavenge(void)
 
 void RecordScavenge::inventoryRecord(Record* record)
 {
+	Sync syncPrior(record->getSyncPrior(), "RecordScavenge::inventoryRecord");
+	syncPrior.lock(Shared);
+
 	for (Record *rec = record; rec; rec = rec->getPriorVersion())
 		{
 		++numberRecords;
Thread
bk commit into 6.0 tree (cpowers:1.2650) BUG#36330cpowers26 Apr