libfoedus-core
FOEDUS Core Library
|
Base type for CREATE STORAGE operation. More...
Base type for CREATE STORAGE operation.
This is not an actual log type that is used. Individual storages have their own create-log type, which is compatible, not derived, to this. Just like Metadata and individual metadata types, this is just to provide a common view.
Definition at line 63 of file storage_log_types.hpp.
#include <storage_log_types.hpp>
Public Member Functions | |
CreateLogType ()=delete | |
CreateLogType (const CreateLogType &other)=delete | |
~CreateLogType ()=delete | |
void | apply_storage (Engine *engine, StorageId storage_id) |
void | assert_valid () |
![]() | |
bool | is_engine_log () const |
bool | is_storage_log () const |
bool | is_record_log () const |
void | apply_engine (thread::Thread *) |
void | apply_record (thread::Thread *, storage::StorageId, xct::RwLockableXctId *, char *) |
void | assert_valid_generic () __attribute__((always_inline)) |
Verifies the log contains essential fields set. More... | |
Public Attributes | |
Metadata | metadata_ |
![]() | |
LogHeader | header_ |
Friends | |
std::ostream & | operator<< (std::ostream &o, const CreateLogType &v) |
|
delete |
|
delete |
|
delete |
Definition at line 68 of file storage_log_types.cpp.
References ASSERT_ND, foedus::storage::StorageManager::create_storage_apply(), foedus::Engine::get_storage_manager(), foedus::storage::Metadata::id_, and metadata_.
void foedus::storage::CreateLogType::assert_valid | ( | ) |
Definition at line 63 of file storage_log_types.cpp.
References ASSERT_ND, foedus::log::StorageLogType::assert_valid_generic(), foedus::log::BaseLogType::header_, foedus::storage::Metadata::id_, metadata_, and foedus::log::LogHeader::storage_id_.
|
friend |
Definition at line 75 of file storage_log_types.cpp.
Metadata foedus::storage::CreateLogType::metadata_ |
Definition at line 65 of file storage_log_types.hpp.
Referenced by apply_storage(), assert_valid(), and foedus::storage::operator<<().