20 #include <glog/logging.h>
46 LOG(INFO) <<
"Applying DROP STORAGE log: " << *
this;
48 LOG(INFO) <<
"Applied DROP STORAGE log: " << *
this;
57 o <<
"<StorageDropLog>"
59 <<
"</StorageDropLog>";
70 LOG(INFO) <<
"Applying CREATE STORAGE log: " << *
this;
72 LOG(INFO) <<
"Applied CREATE STORAGE log: " << *
this;
78 o << reinterpret_cast<const array::ArrayCreateLogType&>(v);
81 o << reinterpret_cast<const hash::HashCreateLogType&>(v);
84 o << reinterpret_cast<const masstree::MasstreeCreateLogType&>(v);
87 o << reinterpret_cast<const sequential::SequentialCreateLogType&>(v);
Log type of DROP STORAGE operation.
void populate(StorageId storage_id)
storage::StorageManager * get_storage_manager() const
See Storage Manager.
Declares all log types used in this storage type.
uint32_t StorageId
Unique ID for storage.
Root package of FOEDUS (Fast Optimistic Engine for Data Unification Services).
Declares all log types used in this storage type.
void create_storage_apply(const Metadata &metadata)
This is called while restart to apply CREATE STORAGE logs.
Declares common log types for all (or at least multiple) storage types.
Declares all log types used in this storage type.
Database engine object that holds all resources and provides APIs.
Declares all log types used in this storage type.
void drop_storage_apply(StorageId id)
This is called while restart to apply DROP STORAGE logs.
std::ostream & operator<<(std::ostream &o, const Composer &v)
Base type for CREATE STORAGE operation.
#define ASSERT_ND(x)
A warning-free wrapper macro of assert() that has no performance effect in release mode even when 'x'...
void apply_storage(Engine *engine, StorageId storage_id)
void assert_valid_generic() __attribute__((always_inline))
Verifies the log contains essential fields set.
void apply_storage(Engine *engine, StorageId storage_id)