Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Placement is always specified as a string
  • Loading branch information
Robert Newson committed Sep 27, 2012
1 parent 255f33d commit c37c9a70dae6cd6030e985e985945ce6f4a29137
Showing 1 changed file with 2 additions and 4 deletions.
@@ -163,8 +163,6 @@ choose_shards(DbName, Nodes, Options) ->
RotatedNodes = B ++ A,
mem3_util:create_partition_map(DbName, N, Q, RotatedNodes, Suffix).

%% either directly as [{term(), non_neg_integer()}] or
%% a config setting as "a:2,b:1"
get_placement(Options) ->
case couch_util:get_value(placement, Options) of
undefined ->
@@ -174,8 +172,8 @@ get_placement(Options) ->
PlacementStr ->
decode_placement_string(PlacementStr)
end;
Placement ->
Placement
PlacementStr ->
decode_placement_string(PlacementStr)
end.

decode_placement_string(PlacementStr) ->

0 comments on commit c37c9a7

Please sign in to comment.