Browse Source

remove last write wins

Maxim Sokhatsky 12 years ago
parent
commit
e823ccac4f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/store_riak.erl

+ 2 - 2
src/store_riak.erl

@@ -126,9 +126,9 @@ get(Tab, Key) ->
     IntKey = key_to_bin(Key),
     riak_get(Bucket, IntKey).
 
-riak_get(Bucket,Key) -> %% TODO: add state monad here for conflict resolution when not last_win strategy used
+riak_get(Bucket,Key) ->
     C = riak_client(),
-    RiakAnswer = C:get(Bucket,Key,[{last_write_wins,true},{allow_mult,false}]),
+    RiakAnswer = C:get(Bucket,Key),
     case RiakAnswer of
         {ok, O} -> {ok,riak_object:get_value(O)};
         X -> X