couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [49/50] fabric commit: updated refs/heads/master to a71701c
Date Thu, 28 Aug 2014 12:21:24 GMT
Pass #changes_args.db_open_options to couch_db:open/2


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/commit/0c3ad74e
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/tree/0c3ad74e
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/diff/0c3ad74e

Branch: refs/heads/master
Commit: 0c3ad74e4dc06f383faa3df091d08c8957f1ff8b
Parents: c3b2860
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Fri Aug 22 05:05:40 2014 -0500
Committer: Paul J. Davis <paul.joseph.davis@gmail.com>
Committed: Fri Aug 22 05:05:40 2014 -0500

----------------------------------------------------------------------
 src/fabric_rpc.erl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/0c3ad74e/src/fabric_rpc.erl
----------------------------------------------------------------------
diff --git a/src/fabric_rpc.erl b/src/fabric_rpc.erl
index 17dc19b..b0099c8 100644
--- a/src/fabric_rpc.erl
+++ b/src/fabric_rpc.erl
@@ -48,7 +48,8 @@ changes(DbName, #changes_args{} = Args, StartSeq, DbOptions) ->
 changes(DbName, Options, StartVector, DbOptions) ->
     set_io_priority(DbName, DbOptions),
     #changes_args{dir=Dir} = Args = lists:keyfind(changes_args, 1, Options),
-    case get_or_create_db(DbName, DbOptions) of
+    DbOpenOptions = Args#changes_args.db_open_options ++ DbOptions,
+    case get_or_create_db(DbName, DbOpenOptions) of
     {ok, Db} ->
         StartSeq = calculate_start_seq(Db, node(), StartVector),
         Enum = fun changes_enumerator/2,


Mime
View raw message