You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ch...@apache.org on 2021/08/10 21:23:26 UTC

[couchdb] 01/01: Ensure maybe_close message is sent to correct process

This is an automated email from the ASF dual-hosted git repository.

chewbranca pushed a commit to branch 3.x-fix-maybe-close-indexer
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 77db58de2916caf2d6905e8ff3160e88425e155b
Author: Russell Branca <ch...@apache.org>
AuthorDate: Tue Aug 10 14:23:06 2021 -0700

    Ensure maybe_close message is sent to correct process
---
 src/couch_index/src/couch_index.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/couch_index/src/couch_index.erl b/src/couch_index/src/couch_index.erl
index cfe0d9e..83eadc7 100644
--- a/src/couch_index/src/couch_index.erl
+++ b/src/couch_index/src/couch_index.erl
@@ -363,7 +363,7 @@ handle_info(maybe_close, State) ->
                     {stop, normal, State}
             end;
         _ ->
-            erlang:send_after(?CHECK_INTERVAL, self, maybe_close),
+            erlang:send_after(?CHECK_INTERVAL, self(), maybe_close),
             {noreply, State}
     end;
 handle_info({'DOWN', _, _, _Pid, _}, #st{mod=Mod, idx_state=IdxState}=State) ->