This is an automated email from the ASF dual-hosted git repository. vatamane pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 1109a2d9dccfef09d11849a59775d81f84816ade Author: Nick Vatamaniuc <[email protected]> AuthorDate: Sat Jan 31 12:52:24 2026 -0500 Fix a type spec discrepancy in couch_replicator_doc_processor `doc_lookup/3` could also return an `{ok, nil}` tuple if this is not the owner node. We already expect it in the only place we call `doc_lookup/3` from but the spec didn't have that case so we add it in here. --- src/couch_replicator/src/couch_replicator_doc_processor.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/couch_replicator/src/couch_replicator_doc_processor.erl b/src/couch_replicator/src/couch_replicator_doc_processor.erl index caf8d4454..f3a0bfcfd 100644 --- a/src/couch_replicator/src/couch_replicator_doc_processor.erl +++ b/src/couch_replicator/src/couch_replicator_doc_processor.erl @@ -563,7 +563,7 @@ doc(Db, DocId) -> end. -spec doc_lookup(binary(), binary(), integer()) -> - {ok, {[_]}} | {error, not_found}. + {ok, {[_]} | nil} | {error, not_found}. doc_lookup(Db, DocId, HealthThreshold) -> case ets:lookup(?MODULE, {Db, DocId}) of [#rdoc{} = RDoc] ->
