Permalink
Browse files

Treat empty vclocks as undefined ones

This works around a bug in the python protobuff library that deserilizes
optional fields that are not supplied as an empty string.
  • Loading branch information...
1 parent 003de11 commit 60f3c4c7656ed8726fc1849b074868b607a5c9a0 @Vagabond Vagabond committed May 31, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/riak_kv_pb_socket.erl
@@ -367,6 +367,8 @@ default_timeout() ->
%% Convert a vector clock to erlang
erlify_rpbvc(undefined) ->
vclock:fresh();
+erlify_rpbvc(<<>>) ->
+ vclock:fresh();
erlify_rpbvc(PbVc) ->
binary_to_term(zlib:unzip(PbVc)).

0 comments on commit 60f3c4c

Please sign in to comment.