risingwave_storage::hummock::utils

Function do_delete_sanity_check

source
pub(crate) async fn do_delete_sanity_check(
    key: &TableKey<Bytes>,
    old_value: &Bytes,
    inner: &impl StateStoreRead,
    epoch: u64,
    table_id: TableId,
    table_option: TableOption,
    op_consistency_level: &OpConsistencyLevel,
) -> StorageResult<()>
Expand description

Make sure that the key to delete should exist in storage and the value should be matched.