libfoedus-core
FOEDUS Core Library
|
Retrun value of drop_volatiles() More...
Retrun value of drop_volatiles()
Definition at line 171 of file composer.hpp.
#include <composer.hpp>
Public Member Functions | |
DropResult (const DropVolatilesArguments &args) | |
void | combine (const DropResult &other) |
void | on_rec_observed (Epoch epoch) |
Public Attributes | |
Epoch | max_observed_ |
the largest Epoch it observed recursively. More... | |
bool | dropped_all_ |
Whether all volatile pages under the page was dropped. More... | |
bool | padding_ [3] |
Friends | |
std::ostream & | operator<< (std::ostream &o, const DropResult &v) |
|
inlineexplicit |
Definition at line 172 of file composer.hpp.
References dropped_all_, max_observed_, foedus::storage::Composer::DropVolatilesArguments::snapshot_, and foedus::snapshot::Snapshot::valid_until_epoch_.
|
inline |
Definition at line 176 of file composer.hpp.
References dropped_all_, max_observed_, and foedus::Epoch::store_max().
Referenced by foedus::storage::array::ArrayComposer::drop_volatiles(), and foedus::storage::masstree::MasstreeComposer::drop_volatiles().
|
inline |
Definition at line 181 of file composer.hpp.
References dropped_all_, and max_observed_.
|
friend |
Definition at line 46 of file composer.cpp.
bool foedus::storage::Composer::DropResult::dropped_all_ |
Whether all volatile pages under the page was dropped.
Definition at line 202 of file composer.hpp.
Referenced by combine(), foedus::snapshot::SnapshotManagerPimpl::drop_volatile_pages_parallel(), foedus::storage::array::ArrayComposer::drop_volatiles(), foedus::storage::hash::HashComposer::drop_volatiles(), foedus::storage::masstree::MasstreeComposer::drop_volatiles(), DropResult(), on_rec_observed(), and foedus::storage::operator<<().
Epoch foedus::storage::Composer::DropResult::max_observed_ |
the largest Epoch it observed recursively.
The page is dropped only if the return value is ==args.snapshot_.valid_until_epoch_. If some record under this contains larger (newer) epoch, it returns that epoch. For ease of store_max, the returned epoch is adjusted to args.snapshot_.valid_until_epoch_ if it's smaller than that. Note that not all volatile pages might be dropped even if this is equal to snapshot_.valid_until_epoch_ (eg no new modifications, but keep-volatile policy told us to keep the volatile page). Use dropped_all_ for that purpose.
Definition at line 200 of file composer.hpp.
Referenced by combine(), foedus::snapshot::SnapshotManagerPimpl::drop_volatile_pages(), foedus::snapshot::SnapshotManagerPimpl::drop_volatile_pages_parallel(), DropResult(), on_rec_observed(), and foedus::storage::operator<<().
bool foedus::storage::Composer::DropResult::padding_[3] |
Definition at line 203 of file composer.hpp.