~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/pbms/src/transaction_ms.cc

  • Committer: Monty Taylor
  • Date: 2011-03-11 18:48:55 UTC
  • mfrom: (2228.1.8 build)
  • Revision ID: mordred@inaugust.com-20110311184855-1essd3a6xfr7lx6r
Merged Andrew: drizzledump and docs bug fixes
Merged Barry: pbms bugfixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
113
113
        MSDiskLostRec lrec;
114
114
        const char *t_txt, *s_txt;
115
115
        char b1[16], b2[16], msg[100];
 
116
        MSDatabase *db;
 
117
        MSTable *tab;
116
118
        
117
119
        //if (PBMSDaemon::isDaemonState(PBMSDaemon::DaemonStartUp) == true)
118
120
                //return;
119
121
 
120
122
        enter_();
 
123
        // Do not report errors caused by missing databases or tables.
 
124
        // This can happen if the transaction log is reread after a crash
 
125
        // and transactions are found that belonged to dropped databases
 
126
        // or tables.
 
127
        db = MSDatabase::getDatabase(rec->tr_db_id, true);
 
128
        if (!db)
 
129
                goto dont_worry_about_it;
 
130
                
 
131
        push_(db);
 
132
        tab = db->getTable(rec->tr_tab_id, true);
 
133
        release_(db);
 
134
        if (!tab)
 
135
                goto dont_worry_about_it;
 
136
        tab->release();
121
137
        
122
138
        switch (state) {
123
139
                case MS_Committed:
173
189
        }
174
190
        trt_lostLog->write(&lrec, trt_lostLog->getEOF(), sizeof(MSDiskLostRec));
175
191
        trt_lostLog->sync();
 
192
        
 
193
dont_worry_about_it:
176
194
        exit_();
177
195
        
178
196
}