|
Zero
0.1.0
|
A point to which a transaction can roll back. More...
#include <sm.h>
Public Member Functions | |
| sm_save_point_t () | |
| tid_t | tid () const |
Public Member Functions inherited from lsn_t | |
| lsn_t () | |
| lsn_t (lsndata_t data) | |
| lsn_t (uint32_t f, sm_diskaddr_t r) | |
| lsndata_t | data () const |
| void | set (lsndata_t data) |
| bool | valid () const |
| uint32_t | hi () const |
| uint32_t | file () const |
| sm_diskaddr_t | lo () const |
| sm_diskaddr_t | rba () const |
| void | copy_rba (const lsn_t &other) |
| void | set_rba (sm_diskaddr_t &other) |
| lsn_t & | advance (int amt) |
| lsn_t & | operator+= (long delta) |
| lsn_t | operator+ (long delta) const |
| bool | operator> (const lsn_t &l) const |
| bool | operator< (const lsn_t &l) const |
| bool | operator>= (const lsn_t &l) const |
| bool | operator<= (const lsn_t &l) const |
| bool | operator== (const lsn_t &l) const |
| bool | operator!= (const lsn_t &l) const |
| std::string | str () |
| bool | is_null () const |
Private Attributes | |
| tid_t | _tid |
Friends | |
| class | ss_m |
| ostream & | operator<< (ostream &o, const sm_save_point_t &p) |
| istream & | operator>> (istream &i, sm_save_point_t &p) |
Additional Inherited Members | |
Public Types inherited from lsn_t | |
| enum | { PARTITION_BITS = 16 } |
| enum | { PARTITION_SHIFT = (64 - PARTITION_BITS) } |
Static Public Member Functions inherited from lsn_t | |
| static uint64_t | mask () |
Static Public Attributes inherited from lsn_t | |
| static const int | sm_diskaddr_max |
| static const lsn_t | null |
| static const lsn_t | max |
A point to which a transaction can roll back.
A transaction an do partial rollbacks with save_work and rollback_work, which use this class to determine how far to roll back. It is nothing more than a log sequence number for the work done to the point when save_work is called.
|
inline |
|
inline |
|
friend |
|
friend |
|
friend |
|
private |
1.8.12