List:Commits« Previous MessageNext Message »
From:Kevin Lewis Date:July 27 2009 3:36pm
Subject:bzr commit into mysql-6.0-falcon-team branch (kevin.lewis:2759)
Bug#46402
View as plain text  
#At file:///C:/Work/bzr/Merge/mysql-6.0-falcon-team/ based on revid:kevin.lewis@stripped

 2759 Kevin Lewis	2009-07-27
      Bug #46402 - Protect Transaction::findOldestInActiveList() with a shared lock on Transaction::activeTransactions.

    modified:
      storage/falcon/Transaction.cpp
=== modified file 'storage/falcon/Transaction.cpp'
--- a/storage/falcon/Transaction.cpp	2009-07-24 17:56:07 +0000
+++ b/storage/falcon/Transaction.cpp	2009-07-27 15:36:30 +0000
@@ -1612,7 +1612,11 @@ void Transaction::thawAll(void)
 	Sync syncRec(&syncRecords,"Transaction::thawAll");
 	syncRec.lock(Shared);
 
+	Sync syncActive(&database->transactionManager->activeTransactions.syncObject, "Transaction::thawAll");
+	syncActive.lock(Shared);
 	TransId oldestActiveTransaction = database->transactionManager->findOldestInActiveList();
+	syncActive.unlock();
+
 	int totalRecords = 0;
 	int totalThawed = 0;
 


Attachment: [text/bzr-bundle] bzr/kevin.lewis@sun.com-20090727153630-g4lz01ad9wpoewn8.bundle
Thread
bzr commit into mysql-6.0-falcon-team branch (kevin.lewis:2759)Bug#46402Kevin Lewis27 Jul
  • Re: bzr commit into mysql-6.0-falcon-team branch (kevin.lewis:2759)Bug#46402Olav Sandstaa27 Jul