| 294 | |
| 295 | |
| 296 | Future<Nothing> LogStorageProcess::__start( |
| 297 | const Log::Position& beginning, |
| 298 | const Log::Position& position) |
| 299 | { |
| 300 | CHECK_SOME(starting); |
| 301 | |
| 302 | truncated = beginning; // Cache for future truncations. |
| 303 | |
| 304 | return reader.read(beginning, position) |
| 305 | .then(defer(self(), &Self::apply, lambda::_1)); |
| 306 | } |
| 307 | |
| 308 | |
| 309 | Future<Nothing> LogStorageProcess::apply(const list<Log::Entry>& entries) |