use super::*;
use crate::background::CheckpointWorkContext;
use crate::relational::RelationalPrimaryKeyChangeCapture;
impl GraphStore {
pub(in crate::store) fn record_checkpoint_search_projection_changes_for_ops(
&mut self,
catalog: &Catalog,
commit_epoch: u64,
ops: &[WalOp],
relational_changes: Option<RelationalPrimaryKeyChangeCapture>,
work: &CheckpointWorkContext,
) -> Result<()> {
let change = self.prepare_search_projection_changes_for_ops_with_work_context(
catalog,
commit_epoch,
ops,
relational_changes,
Some(work),
)?;
work.checkpoint().map_err(HawDBError::from_storage_error)?;
self.install_search_projection_change(change);
Ok(())
}
}