fast_info is optional. for instance, there is chance that it
is the first time the info is written to store, in that case,
there is no delta, i.e. fast info yet.
Signed-off-by: Kefu Chai <kchai@redhat.com>
}
{
auto fast_info = find_value<pg_fast_info_t>(values, fastinfo_key);
- assert(fast_info);
- fast_info->try_apply_to(&info);
+ if (fast_info) {
+ fast_info->try_apply_to(&info);
+ }
}
return seastar::make_ready_future<pg_info_t, PastIntervals>(
std::move(info),