rnewson commented on code in PR #6031:
URL: https://github.com/apache/couchdb/pull/6031#discussion_r3391130995
##########
src/couch_replicator/src/couch_replicator_docs.erl:
##########
@@ -209,6 +215,22 @@ open_rep_doc(DbName, DocId) ->
Else
end.
+save_rep_doc(<<"shards/", _/binary>> = ShardDbName, Doc) ->
+ DbName = mem3:dbname(ShardDbName),
+ ioq:maybe_set_io_priority({system, DbName}),
+ defer_call(fun() ->
+ try
+ fabric:update_doc(DbName, Doc, [?CTX])
Review Comment:
hm, true. I've made the fabric calls conditional on 1) a sharded database
and 2) sws must be set to true, otherwise we just do the local operation.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]