davisp commented on a change in pull request #470: Scheduling Replicator URL: https://github.com/apache/couchdb/pull/470#discussion_r110434925
########## File path: src/couch_replicator/src/couch_replicator_filters.erl ########## @@ -0,0 +1,208 @@ +% Licensed under the Apache License, Version 2.0 (the "License"); you may not +% use this file except in compliance with the License. You may obtain a copy of +% the License at +% +% http://www.apache.org/licenses/LICENSE-2.0 +% +% Unless required by applicable law or agreed to in writing, software +% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +% License for the specific language governing permissions and limitations under +% the License. + +-module(couch_replicator_filters). + +-export([parse/1, fetch/4, view_type/2]). +-export([ejsort/1]). + +-include_lib("couch/include/couch_db.hrl"). + +-import(couch_util, [ + get_value/2, + get_value/3 +]). + + +% Parse the filter from replication options proplist. +% Return {ok, {FilterType,...}} | {error, ParseError}. +% For `user` filter, i.e. filters specified as user code +% in source database, this code doesn't fetch the filter +% code, but only returns the name of the filter. +-spec parse([_]) -> + {ok, nil} | Review comment: Just Say No to Two Space Indents! ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
