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

jan pushed a commit to branch auto-delete-3-plus-shard-move
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 40bfb3c0849ba23bd806c28d027defd68f003b79
Author: Robert Newson <[email protected]>
AuthorDate: Wed Jun 25 19:56:59 2025 +0100

    split_shard updates indexes if they exist
---
 test/elixir/test/drop_seq_statem_test.exs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/test/elixir/test/drop_seq_statem_test.exs 
b/test/elixir/test/drop_seq_statem_test.exs
index a21380426..ba37d5d6c 100644
--- a/test/elixir/test/drop_seq_statem_test.exs
+++ b/test/elixir/test/drop_seq_statem_test.exs
@@ -158,6 +158,7 @@ defmodule DropSeqStateM do
               current_seq: 0,
               peer_checkpoint_seq: nil,
               index_seq: nil,
+              indexes_exist: false,
               drop_seq: nil,
               drop_count: 0,
               check_actual_state: false
@@ -568,7 +569,7 @@ defmodule DropSeqStateM do
     %State{s | check_actual_state: false}
   end
 
-  def next_state(s = %State{index_seq: nil}, _v, {:call, _, :split_shard, 
[_db_name]}) do
+  def next_state(s = %State{indexes_exist: false}, _v, {:call, _, 
:split_shard, [_db_name]}) do
     %State{s | check_actual_state: true}
   end
 
@@ -581,6 +582,7 @@ defmodule DropSeqStateM do
     %State{
       s
       | current_seq: s.current_seq + 1,
+        indexes_exist: true,
         check_actual_state: true
     }
   end

Reply via email to