Skip to content

Commit

Permalink
fix: calls fetch_publication_tables on init (#769)
Browse files Browse the repository at this point in the history
* fix: calls fetch_publication_tables on init

* version bump

---------

Co-authored-by: Filipe Cabaço <[email protected]>
  • Loading branch information
chasers and filipecabaco authored Dec 26, 2023
1 parent 97b214e commit 6f5af2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/extensions/postgres_cdc_rls/subscription_manager.ex
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,14 @@ defmodule Extensions.PostgresCdcRls.SubscriptionManager do
{:ok, _} = Subscriptions.maybe_delete_all(conn)
Rls.update_meta(id, self(), conn_pub)

oids = Subscriptions.fetch_publication_tables(conn, publication)

state = %State{
id: id,
conn: conn,
publication: publication,
subscribers_tid: subscribers_tid,
oids: oids,
delete_queue: %{
ref: check_delete_queue(),
queue: :queue.new()
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Realtime.MixProject do
def project do
[
app: :realtime,
version: "2.25.50",
version: "2.25.51",
elixir: "~> 1.14.0",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
Expand Down

0 comments on commit 6f5af2f

Please sign in to comment.