Skip to content

Commit ff506e2

Browse files
authored
Merge pull request #2472 from basho/jenagraham-patch-code-sample
Update python.md
2 parents 1d46650 + 86cd8e2 commit ff506e2

File tree

1 file changed

+3
-1
lines changed
  • content/riak/kv/2.2.0/developing/usage/conflict-resolution

1 file changed

+3
-1
lines changed

content/riak/kv/2.2.0/developing/usage/conflict-resolution/python.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,9 @@ obj = RiakObject(client, bucket, 'bashobunny')
137137
obj.resolver = longest_friends_list_resolver
138138

139139
# Now, when the object is loaded from Riak, it will resolve to a single
140-
# value instead of multiple values:
140+
# value instead of multiple values when both commands are executed:
141141
obj.reload()
142+
obj.store()
142143
```
143144

144145
Alternatively, resolvers can be registered at the bucket level, so that
@@ -150,6 +151,7 @@ bucket.resolver = longest_friends_list_resolver
150151

151152
obj = RiakObject(client, bucket, 'bashobunny')
152153
obj.reload()
154+
obj.store()
153155

154156
# The resolver will also be applied if you perform operations using the
155157
# bucket object:

0 commit comments

Comments
 (0)