diff --git a/src/server/cellular_region_host.cpp b/src/server/cellular_region_host.cpp index 4a95f8b..2ac775a 100644 --- a/src/server/cellular_region_host.cpp +++ b/src/server/cellular_region_host.cpp @@ -300,17 +300,20 @@ CellularRegionHost::publish(const CellularBatch& batch, const auto grant = authority_.grant(); if (!status_.ready || !state_ || !committed_ || !grant || !authority_.may_begin_commit(LeaseClock::now())) - return std::unexpected{CellularPublishFailure{CellularHostError::not_ready}}; + return std::unexpected{ + CellularPublishFailure{CellularHostError::not_ready, {}, {}, {}}}; auto candidate = replay_cellular_batch(*state_, batch); if (!candidate) - return std::unexpected{CellularPublishFailure{CellularHostError::invalid_batch}}; + return std::unexpected{ + CellularPublishFailure{CellularHostError::invalid_batch, {}, {}, {}}}; auto trace = encode_cellular_batch(batch); auto action_block = encode_cellular_action_block(actions, batch.header.begin_tick, batch.header.end_tick); const auto commit = trace && action_block ? commit_id(*committed_, *trace, *action_block) : std::nullopt; if (!commit) - return std::unexpected{CellularPublishFailure{CellularHostError::invalid_batch}}; + return std::unexpected{ + CellularPublishFailure{CellularHostError::invalid_batch, {}, {}, {}}}; auto published = persistence::publish_cellular_batch( *db_, *objects_, grant.value_or(persistence::LeaseGrant{}), *committed_, batch, **candidate, *commit, config_.build, config_.lease.commit_timeout, {}, actions);