STLdb

PrevUpHomeNext

Class template recovery_manager

stldb::recovery_manager

Synopsis

// In header: </Users/bobw/workspace/stldb_lib/stldb/recovery_manager.h>

template<typename ManagedRegionType> 
class recovery_manager {
public:
  // types
  typedef Database< ManagedRegionType >                        db_type;             
  typedef container_proxy_base< ManagedRegionType >            container_proxy_type;
  typedef std::map< container_proxy_type *, transaction_id_t > container_lsn_map_t; 

  // construct/copy/destruct
  recovery_manager(db_type &, container_lsn_map_t &, transaction_id_t);

  // public member functions
  transaction_id_t recover() ;

  // private member functions
  transaction_id_t 
  recover_txn(std::pair< log_header *, std::vector< char > * >) ;
};

Description

recovery_manager public construct/copy/destruct

  1. recovery_manager(db_type & database, container_lsn_map_t & container_lsn, 
                     transaction_id_t starting_lsn);

recovery_manager public member functions

  1. transaction_id_t recover() ;

recovery_manager private member functions

  1. transaction_id_t 
    recover_txn(std::pair< log_header *, std::vector< char > * > header_and_data) ;

PrevUpHomeNext