~drizzle-pbxt/drizzle/drizzle-pbxt-2

« back to all changes in this revision

Viewing changes to plugin/pbxt/src/restart_xt.h

  • Committer: Paul McCullagh
  • Date: 2009-11-10 14:18:39 UTC
  • mfrom: (1038.1.7 drizzle-pbxt-pre-merge)
  • Revision ID: paul.mccullagh@primebase.org-20091110141839-2j3k43b17ag6f605
Merged Drizzle trunk and PBXT 1.0.09

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
struct XTDatabase;
38
38
struct XTTable;
39
39
 
 
40
extern int                              pbxt_recovery_state;
 
41
 
40
42
typedef struct XTWriterState {
41
43
        struct XTDatabase               *ws_db;
42
44
        xtBool                                  ws_in_recover;
131
133
void xt_print_log_record(xtLogID log, off_t offset, XTXactLogBufferDPtr record);
132
134
void xt_dump_xlogs(struct XTDatabase *db, xtLogID start_log);
133
135
 
 
136
void xt_xres_start_database_recovery(XTThreadPtr self);
 
137
void xt_xres_terminate_recovery(XTThreadPtr self);
 
138
 
 
139
#define XT_RECOVER_PENDING                      0
 
140
#define XT_RECOVER_DONE                         1
 
141
#define XT_RECOVER_SWEPT                        2
 
142
 
 
143
inline void xt_xres_wait_for_recovery(XTThreadPtr XT_UNUSED(self), int state)
 
144
{
 
145
        while (pbxt_recovery_state < state)
 
146
                xt_sleep_milli_second(100);
 
147
}
 
148
 
134
149
#endif