Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting value for nested CRDT SET #63

Open
naveen-negi opened this issue May 13, 2018 · 0 comments
Open

Deleting value for nested CRDT SET #63

naveen-negi opened this issue May 13, 2018 · 0 comments

Comments

@naveen-negi
Copy link

naveen-negi commented May 13, 2018

Hi,
I have a crdt Map which contains a set as shown below
{:map, [{{"images", :set}, ["1.png"]}, {{"user_id", :register}, "nav"}], [], [], │.***************delete *********** <<131, 108, 0, 0, 0, 1, 104, 2, 109, 0, 0, 0, 12, 35, 9, 254, 249, 42, 2, 65, │"/var/folders/2r/1vc2nqzx5d95vg57rrs1v5r40000gn/T//briefly-1526/briefly-112687-902595-2/rin_1/image.jpeg" 179, 0, 1, 17, 139, 97, 5, 106>>}

I want to delete values from this nested set (named "images"). somehow I am not able to achieve this.

I tried updated in the crdt map with a new set altogether but it does not seems to be working.
set = Set.new updated_crdt = Map.put(crdt, "images", set) Riak.update(u_crdt, "media", "media", "nav")
I get below error:
{:error, :unmodified}

Any help is much appreciated.

@naveen-negi naveen-negi changed the title Updating set nested within CRDT Map. Deleting value for nested CRDT SET May 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant