Skip to content

merge operator not associative #104

@yangl1996

Description

@yangl1996

https://github.com/facebook/rocksdb/wiki/Merge-Operator#associativity-vs-non-associativity

Merge operators in blockchain module are not associative. e.g. https://github.com/yangl1996/prism-rust/blob/master/src/blockchain/mod.rs#L1610

Sometimes RocksDb tries to execute the merge operator in the backend, supplying it with values already in the database. This is invalid to our merge operators. E.g. in the case above, the operator takes a singe tuple, while the value stored in the table is a vector of another type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions