Skip to content
This repository
Browse code

Merge branch 'master' into arg-improve-modernize-specs

  • Loading branch information...
commit 35c6f9aadfd9e569aefddfb313c5efa6c92d02ef 2 parents 2852e2d + 8bb2757
Andy Gross authored

Showing 1 changed file with 5 additions and 5 deletions. Show diff stats Hide diff stats

  1. 10  src/riak_client.erl
10  src/riak_client.erl
@@ -315,7 +315,7 @@ get(Bucket, Key, R, Timeout) when is_binary(Bucket), is_binary(Key),
315 315
 %%      Return as soon as the default W value number of nodes for this bucket
316 316
 %%      nodes have received the request.
317 317
 %% @equiv put(RObj, [])
318  
-put(RObj) -> put(RObj, []).
  318
+put(RObj) -> THIS:put(RObj, []).
319 319
 
320 320
 
321 321
 %% @spec put(RObj :: riak_object:riak_object(), riak_kv_put_fsm::options()) ->
@@ -346,7 +346,7 @@ put(RObj, Options) when is_list(Options) ->
346 346
 %% @doc Store RObj in the cluster.
347 347
 %%      Return as soon as at least W nodes have received the request.
348 348
 %% @equiv put(RObj, [{w, W}, {dw, W}])
349  
-put(RObj, W) -> put(RObj, [{w, W}, {dw, W}]).
  349
+put(RObj, W) -> THIS:put(RObj, [{w, W}, {dw, W}]).
350 350
 
351 351
 %% @spec put(RObj::riak_object:riak_object(),W :: integer(),RW :: integer()) ->
352 352
 %%        ok |
@@ -357,7 +357,7 @@ put(RObj, W) -> put(RObj, [{w, W}, {dw, W}]).
357 357
 %%      Return as soon as at least W nodes have received the request, and
358 358
 %%      at least DW nodes have stored it in their storage backend.
359 359
 %% @equiv put(Robj, W, DW, default_timeout())
360  
-put(RObj, W, DW) -> put(RObj, [{w, W}, {dw, DW}]).
  360
+put(RObj, W, DW) -> THIS:put(RObj, [{w, W}, {dw, DW}]).
361 361
 
362 362
 %% @spec put(RObj::riak_object:riak_object(), W :: integer(), RW :: integer(),
363 363
 %%           TimeoutMillisecs :: integer()) ->
@@ -369,7 +369,7 @@ put(RObj, W, DW) -> put(RObj, [{w, W}, {dw, DW}]).
369 369
 %%      Return as soon as at least W nodes have received the request, and
370 370
 %%      at least DW nodes have stored it in their storage backend, or
371 371
 %%      TimeoutMillisecs passes.
372  
-put(RObj, W, DW, Timeout) -> put(RObj,  [{w, W}, {dw, DW}, {timeout, Timeout}]).
  372
+put(RObj, W, DW, Timeout) -> THIS:put(RObj,  [{w, W}, {dw, DW}, {timeout, Timeout}]).
373 373
 
374 374
 %% @spec put(RObj::riak_object:riak_object(), W :: integer(), RW :: integer(),
375 375
 %%           TimeoutMillisecs :: integer(), Options::list()) ->
@@ -382,7 +382,7 @@ put(RObj, W, DW, Timeout) -> put(RObj,  [{w, W}, {dw, DW}, {timeout, Timeout}]).
382 382
 %%      at least DW nodes have stored it in their storage backend, or
383 383
 %%      TimeoutMillisecs passes.
384 384
 put(RObj, W, DW, Timeout, Options) ->
385  
-    put(RObj, [{w, W}, {dw, DW}, {timeout, Timeout} | Options]).
  385
+   THIS:put(RObj, [{w, W}, {dw, DW}, {timeout, Timeout} | Options]).
386 386
 
387 387
 %% @spec delete(riak_object:bucket(), riak_object:key()) ->
388 388
 %%        ok |

0 notes on commit 35c6f9a

Please sign in to comment.
Something went wrong with that request. Please try again.