Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

src/*.erl

  • Loading branch information...
commit c0c7bfe9a6eba52f476cedf01dc5962835d431cf 1 parent 127c3dc
@pavlobaron authored
Showing with 4 additions and 14 deletions.
  1. +4 −0 src/riak_mongo_decenc.erl
  2. +0 −14 src/riak_mongo_protocol.erl
View
4 src/riak_mongo_decenc.erl
@@ -47,4 +47,8 @@ do_fields(B) ->
-spec encode_struct(tuple()) -> binary().
encode_struct(Struct) ->
+
+
+error_logger:info_msg("~p", [mochijson2:encode(Struct)]),
+
iolist_to_binary(mochijson2:encode(Struct)).
View
14 src/riak_mongo_protocol.erl
@@ -164,20 +164,6 @@ encode_packet(#mongo_reply{
?put_int32(length(Documents)),
<< <<(bson_binary:put_document (Doc)) /binary>> || Doc <- Documents>> /binary >>}.
-
-%%
-%%
-%%
-%get_all_docs(Binary) ->
-% get_all_docs(Binary, []).
-
-%get_all_docs(<<>>, Acc) ->
-% lists:reverse(Acc);
-%get_all_docs(Data, Acc) ->
-% {Doc, Rest} = riak:get_document(Data),
-% get_all_docs(Rest, [Doc|Acc]).
-
-
get_int64_list(Num, Binary) ->
get_int64_list(Num, Binary, []).
Please sign in to comment.
Something went wrong with that request. Please try again.