forked from bloomberg/comdb2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bdb_osql_log_rec.h
31 lines (27 loc) · 926 Bytes
/
bdb_osql_log_rec.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef __bdb_osql_log_rec_h
#define __bdb_osql_log_rec_h
/**
* Contains a copy of one log record
*
*/
typedef struct bdb_osql_log_rec {
int type; /* type of the record */
DB_LSN lsn;
unsigned long long genid;
char *table;
int dbnum;
short dtafile;
short dtastripe;
DB_LSN complsn;
struct bdb_osql_log_rec *comprec;
LINKC_T(struct bdb_osql_log_rec) lnk; /* link to next record */
} bdb_osql_log_rec_t;
typedef struct bdb_osql_log_impl {
LISTC_T(bdb_osql_log_rec_t) recs; /* list of undo records */
int clients; /* clean ; num sessions need it */
int trak; /* set this for debug tracing */
unsigned long long oldest_genid; /* oldest genid in this log */
unsigned long long commit_genid; /* The commit id of log.*/
int cancelled; /* if clients>0, set this if already cancelled */
} bdb_osql_log_impl_t;
#endif