Skip to content

Commit

Permalink
Fix child_id in PostgresConnector error handlers
Browse files Browse the repository at this point in the history
child_id was changed in 44533ce
  • Loading branch information
alco committed May 3, 2024
1 parent 364b603 commit 29aec59
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ defmodule Electric.Replication.PostgresConnector do
require Logger

alias Electric.Replication.Connectors
alias Electric.Replication.Postgres.LogicalReplicationProducer
alias Electric.Replication.PostgresConnectorMng
alias Electric.Replication.PostgresConnectorSup

Expand Down Expand Up @@ -87,7 +88,7 @@ defmodule Electric.Replication.PostgresConnector do
end

defp log_child_error(
:postgres_producer,
LogicalReplicationProducer,
{:bad_return_value,
{:error,
{:error, :error, "55006", :object_in_use, "replication slot" <> _ = msg, _c_stacktrace}}},
Expand All @@ -104,7 +105,7 @@ defmodule Electric.Replication.PostgresConnector do
end

defp log_child_error(
:postgres_producer,
LogicalReplicationProducer,
{:bad_return_value, {:error, :wal_level_not_logical}},
_connector_config
) do
Expand All @@ -119,7 +120,7 @@ defmodule Electric.Replication.PostgresConnector do
end

defp log_child_error(
:postgres_producer,
LogicalReplicationProducer,
{:bad_return_value, {:error, {:create_replication_slot_syntax_error, msg}}},
_connector_config
) do
Expand Down

0 comments on commit 29aec59

Please sign in to comment.