#At file:///home/jonas/src/telco-7.0/ based on revid:jonas@stripped
4387 Jonas Oreland 2011-05-17
ndb - make sure Dbdih::TabRecord::m_lock gets initialized
modified:
storage/ndb/src/kernel/blocks/dbdih/Dbdih.hpp
storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
=== modified file 'storage/ndb/src/kernel/blocks/dbdih/Dbdih.hpp'
--- a/storage/ndb/src/kernel/blocks/dbdih/Dbdih.hpp 2011-05-17 07:06:30 +0000
+++ b/storage/ndb/src/kernel/blocks/dbdih/Dbdih.hpp 2011-05-17 11:41:50 +0000
@@ -444,6 +444,8 @@ public:
*/
struct TabRecord
{
+ TabRecord() { }
+
/**
* rw-lock that protects multiple parallel DIGETNODES (readers) from
* updates to fragmenation changes (e.g CREATE_FRAGREQ)...
=== modified file 'storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp'
--- a/storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp 2011-04-21 09:21:18 +0000
+++ b/storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp 2011-05-17 11:41:50 +0000
@@ -15325,6 +15325,7 @@ void Dbdih::initRestorableGciFiles()
void Dbdih::initTable(TabRecordPtr tabPtr)
{
+ new (tabPtr.p) TabRecord();
tabPtr.p->noOfFragChunks = 0;
tabPtr.p->method = TabRecord::NOTDEFINED;
tabPtr.p->tabStatus = TabRecord::TS_IDLE;
Attachment: [text/bzr-bundle] bzr/jonas@mysql.com-20110517114150-34x37r26zoe1yq2z.bundle
| Thread |
|---|
| • bzr commit into mysql-5.1-telco-7.0 branch (jonas:4387) | Jonas Oreland | 18 May |