Skip to content

Commit

Permalink
Release v2.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cabol committed Sep 1, 2024
1 parent 0afc2bb commit a9f7486
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,23 @@ All notable changes to this project will be documented in this file.

This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v2.4.1](https://github.com/cabol/nebulex_redis_adapter/tree/v2.4.1) (2024-09-01)

[Full Changelog](https://github.com/cabol/nebulex_redis_adapter/compare/v2.4.0...v2.4.1)

**Closed issues:**

- Redis Cluster ConfigManager process not alive
[#60](https://github.com/cabol/nebulex_redis_adapter/issues/60)
- Potential RCE via `:erlang.binary_to_term`
[#59](https://github.com/cabol/nebulex_redis_adapter/issues/59)

**Merged pull requests:**

- Fix `RedisCluster.ConfigManager` going down during setup shards
[#61](https://github.com/cabol/nebulex_redis_adapter/pull/61)
([hT013](https://github.com/hT013))

## [v2.4.0](https://github.com/cabol/nebulex_redis_adapter/tree/v2.4.0) (2024-02-11)

[Full Changelog](https://github.com/cabol/nebulex_redis_adapter/compare/v2.3.1...v2.4.0)
Expand Down
8 changes: 5 additions & 3 deletions lib/nebulex_redis_adapter/redis_cluster/config_manager.ex
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ defmodule NebulexRedisAdapter.RedisCluster.ConfigManager do
# Setup the cluster
with {:ok, specs, conn_opts} <- get_cluster_shards(opts) do
running_shards =
for {start, stop, m_host, m_port} <- specs do
Enum.map(specs, fn {start, stop, m_host, m_port} ->
# Define slot id
slot_id = {:cluster_shards, start, stop}

Expand Down Expand Up @@ -200,7 +200,7 @@ defmodule NebulexRedisAdapter.RedisCluster.ConfigManager do

# Return the child pid with its monitor reference.
{pid, ref}
end
end)

# Return running shards/pools
{:ok, running_shards}
Expand Down Expand Up @@ -282,7 +282,9 @@ defmodule NebulexRedisAdapter.RedisCluster.ConfigManager do

slot_ranges
|> Enum.chunk_every(2)
|> Enum.reduce(acc, fn [start, stop], acc -> [{start, stop, host, port} | acc] end)
|> Enum.reduce(acc, fn [start, stop], acc ->
[{start, stop, host, port} | acc]
end)
end

# Redis version < 7 (["CLUSTER", "SLOTS"])
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule NebulexRedisAdapter.MixProject do
use Mix.Project

@source_url "https://github.com/cabol/nebulex_redis_adapter"
@version "2.4.0"
@version "2.4.1"
@nbx_tag "2.6.3"
@nbx_vsn "2.6"

Expand Down

0 comments on commit a9f7486

Please sign in to comment.