Module yz_bucket_validator

Verifies that a bucket type's n_val property matches any associated index's n_val

Description

Verifies that a bucket type's n_val property matches any associated index's n_val

Data Types

error()

error() = {PropName::atom(), ErrorReason::atom()}

errors()

errors() = [error()]

prop()

prop() = {PropName::atom(), PropValue::any()}

props()

props() = [prop()]

Function Index

validate/4Performs two validations.

Function Details

validate/4

validate(CreateOrUpdate::create | update, Bucket::{riak_core_bucket_type:bucket_type(), undefined | binary()} | binary(), ExistingProps::undefined | props(), BucketProps::props()) -> {props(), errors()}

Performs two validations. The first is validating that an index exists before a bucket-type/bucket can be associated to it by setting search_index. The second checks that the bucket-type/bucket has the same n_val as the associated index's n_val.


Generated by EDoc