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 22:00:42 UTC

[couchdb] branch 3.x updated: Ensure maybe_close message is sent to correct process (#3700)

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

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


The following commit(s) were added to refs/heads/3.x by this push:
     new a247b7d  Ensure maybe_close message is sent to correct process (#3700)
a247b7d is described below

commit a247b7db3cbf0a6a65581136d3c982022c3be279
Author: Russell Branca <ch...@apache.org>
AuthorDate: Tue Aug 10 15:00:34 2021 -0700

    Ensure maybe_close message is sent to correct process (#3700)
---
 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) ->