rnewson commented on issue #5528:
URL: https://github.com/apache/couchdb/issues/5528#issuecomment-2845047450

   `_diff --git i/src/couch/src/couch_db.erl w/src/couch/src/couch_db.erl
   index 8718b5b82..bae68aef0 100644
   --- i/src/couch/src/couch_db.erl
   +++ w/src/couch/src/couch_db.erl
   @@ -1348,9 +1348,10 @@ update_docs(Db, Docs0, Options, ?REPLICATED_CHANGES) 
->
        ),
        {ok, DocErrors};
    update_docs(Db, Docs0, Options, ?INTERACTIVE_EDIT) ->
   +    OverrideWriteBlock = lists:member(override_write_block, Options),
        BlockInteractiveDatabaseWrites = 
couch_disk_monitor:block_interactive_database_writes(),
        if
   -        BlockInteractiveDatabaseWrites ->
   +        not OverrideWriteBlock andalso BlockInteractiveDatabaseWrites ->
                {ok, [{insufficient_storage, <<"database_dir is too full">>} || 
_ <- Docs0]};
            true ->
                update_docs_interactive(Db, Docs0, Options)
   diff --git i/src/mem3/src/mem3_rep.erl w/src/mem3/src/mem3_rep.erl
   index 3df07a9fd..4c28956b5 100644
   --- i/src/mem3/src/mem3_rep.erl
   +++ w/src/mem3/src/mem3_rep.erl
   @@ -737,7 +737,7 @@ update_locals(Target, Db, Seq) ->
            {<<"timestamp">>, list_to_binary(mem3_util:iso8601_timestamp())}
        ],
        NewBody = mem3_rpc:save_checkpoint(Node, Name, Id, Seq, NewEntry, 
History),
   -    {ok, _} = couch_db:update_doc(Db, #doc{id = Id, body = NewBody}, []).
   +    {ok, _} = couch_db:update_doc(Db, #doc{id = Id, body = NewBody}, 
[override_write_block]).
   
    purge_cp_body(#shard{} = Source, #shard{} = Target, PurgeSeq) ->
        {Mega, Secs, _} = os:timestamp(),_`


-- 
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]

Reply via email to