Skip to content

Commit a9f7486

Browse files
committed
Release v2.4.1
1 parent 0afc2bb commit a9f7486

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@ All notable changes to this project will be documented in this file.
44

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

7+
## [v2.4.1](https://github.com/cabol/nebulex_redis_adapter/tree/v2.4.1) (2024-09-01)
8+
9+
[Full Changelog](https://github.com/cabol/nebulex_redis_adapter/compare/v2.4.0...v2.4.1)
10+
11+
**Closed issues:**
12+
13+
- Redis Cluster ConfigManager process not alive
14+
[#60](https://github.com/cabol/nebulex_redis_adapter/issues/60)
15+
- Potential RCE via `:erlang.binary_to_term`
16+
[#59](https://github.com/cabol/nebulex_redis_adapter/issues/59)
17+
18+
**Merged pull requests:**
19+
20+
- Fix `RedisCluster.ConfigManager` going down during setup shards
21+
[#61](https://github.com/cabol/nebulex_redis_adapter/pull/61)
22+
([hT013](https://github.com/hT013))
23+
724
## [v2.4.0](https://github.com/cabol/nebulex_redis_adapter/tree/v2.4.0) (2024-02-11)
825

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

lib/nebulex_redis_adapter/redis_cluster/config_manager.ex

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ defmodule NebulexRedisAdapter.RedisCluster.ConfigManager do
165165
# Setup the cluster
166166
with {:ok, specs, conn_opts} <- get_cluster_shards(opts) do
167167
running_shards =
168-
for {start, stop, m_host, m_port} <- specs do
168+
Enum.map(specs, fn {start, stop, m_host, m_port} ->
169169
# Define slot id
170170
slot_id = {:cluster_shards, start, stop}
171171

@@ -200,7 +200,7 @@ defmodule NebulexRedisAdapter.RedisCluster.ConfigManager do
200200

201201
# Return the child pid with its monitor reference.
202202
{pid, ref}
203-
end
203+
end)
204204

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

283283
slot_ranges
284284
|> Enum.chunk_every(2)
285-
|> Enum.reduce(acc, fn [start, stop], acc -> [{start, stop, host, port} | acc] end)
285+
|> Enum.reduce(acc, fn [start, stop], acc ->
286+
[{start, stop, host, port} | acc]
287+
end)
286288
end
287289

288290
# Redis version < 7 (["CLUSTER", "SLOTS"])

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ defmodule NebulexRedisAdapter.MixProject do
22
use Mix.Project
33

44
@source_url "https://github.com/cabol/nebulex_redis_adapter"
5-
@version "2.4.0"
5+
@version "2.4.1"
66
@nbx_tag "2.6.3"
77
@nbx_vsn "2.6"
88

0 commit comments

Comments
 (0)