couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From benoitc <>
Subject [GitHub] couchdb-fabric pull request: 1993 bigcouch couch mrview
Date Mon, 31 Mar 2014 13:44:57 GMT
Github user benoitc commented on a diff in the pull request:
    --- Diff: src/fabric_view_reduce.erl ---
    @@ -84,6 +74,30 @@ handle_message({rexi_EXIT, Reason}, Worker, State) ->
             {error, Resp}
    +%% HACK: this just sends meta once. Instead we should move the counter logic
    +%% from the #view_row handle_message below into this function and and pass the
    +%% meta call through maybe_send_row. This will also be more efficient doing it
    +%% here as it's one less worker round trip reply.
    +%% Prior to switching to couch_mrview, the fabric_view_reduce implementation
    +%% did not get a total_and_offset call, whereas now we do. We now use this
    +%% message as a clean way to indicate to couch_mrview_http:view_cb that the
    +%% reduce response is starting.
    +handle_message({meta, Meta}, {_Worker, From}, State) ->
    +    gen_server:reply(From, ok),
    +    #collector{
    +        callback = Callback,
    +        user_acc = AccIn
    +    } = State,
    +    {Go, Acc} = case get(meta_sent) of
    +        undefined ->
    +            put(meta_sent, true),
    --- End diff --
    what is the usage of this key? Looks like you only erasing it.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message