- I created a new key using GetMergeOperator() and then added values to it (my add function appends the values together). Finally, doing an m.Stop().
- After that, I deleted that merged value using txn.Delete().
- Then, I did a GetMergeOperator for the key again and appended some new set of values.
- Now, if I do a Get on that key, I expect to see only the new set of values merged (from step #3 above) . But, MergeOperator ends up merging the old value (which was created in step #1 and deleted in step #2) also along with new set of values.
GitHub Gist of my test code - testbadger.go · GitHub
Am I misunderstanding something about how merge operators are supposed to be used?