Skip to content

Commit

Permalink
Hotfix for cache corruption alarms (cvmfs#3728)
Browse files Browse the repository at this point in the history
  • Loading branch information
vvolkl authored Dec 16, 2024
1 parent df5ddbd commit 1096144
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions cvmfs/catalog_mgr_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -317,12 +317,14 @@ LoadReturn ClientCatalogManager::LoadCatalogByHash(
CacheManager::Label label;
label.path = repo_name_;
label.flags |= CacheManager::kLabelCertificate;
fetcher_->cache_mgr()->CommitFromMem(
CacheManager::LabeledObject(ctlg_context->manifest_ensemble()->
manifest->certificate(),
label),
ctlg_context->manifest_ensemble()->cert_buf,
ctlg_context->manifest_ensemble()->cert_size);
if (ctlg_context->manifest_ensemble()->cert_size > 0) {
fetcher_->cache_mgr()->CommitFromMem(
CacheManager::LabeledObject(ctlg_context->manifest_ensemble()->
manifest->certificate(),
label),
ctlg_context->manifest_ensemble()->cert_buf,
ctlg_context->manifest_ensemble()->cert_size);
}
fetcher_->cache_mgr()->StoreBreadcrumb(
*ctlg_context->manifest_ensemble()->manifest);
}
Expand Down

0 comments on commit 1096144

Please sign in to comment.