Permalink
Browse files

fix key names for column groups

  • Loading branch information...
1 parent b4668d8 commit f2250b56421c466d65346a3fac34b70d3c24a7c6 @krestenkrab committed May 6, 2011
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/riak_column.erl
View
@@ -53,7 +53,13 @@
group_name(GroupP) when bit_size(GroupP) =< 160 ->
BitSize = bit_size(GroupP),
Bits = BitSize rem 8,
- <<ColumnName/binary,$#,BitSize,GroupP/bitstring,0:(8-Bits)/unsigned-unit:1>>.
+ case Bits of
+ 0 ->
+ <<ColumnName/binary,$#,BitSize,GroupP/bitstring>>;
+ _ ->
+ <<ColumnName/binary,$#,BitSize,GroupP/bitstring,0:(8-Bits)/unsigned-unit:1>>
+ end.
+
-spec lookup(RowKey::binary()) -> {ok, value()} | {error, notfound}.

0 comments on commit f2250b5

Please sign in to comment.