Skip to content
This repository was archived by the owner on Sep 23, 2024. It is now read-only.

Commit 875ac2f

Browse files
committed
Rebase to 6.0.4 and add some updates from Remi.
1 parent 780d984 commit 875ac2f

5 files changed

+53
-5
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,5 @@ clog
6969
/redis-doc-ee32a19.tar.gz
7070
/redis-6.0.1.tar.gz
7171
/redis-6.0.3.tar.gz
72+
/redis-6.0.4.tar.gz
73+
/redis-doc-f092dd3.tar.gz
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
diff --git a/0003-Notify-systemd-on-sentinel-startup.patch b/0003-Notify-systemd-on-sentinel-startup.patch
2+
new file mode 100644
3+
index 0000000..ee58b56
4+
--- /dev/null
5+
+++ b/0003-Notify-systemd-on-sentinel-startup.patch
6+
@@ -0,0 +1,24 @@
7+
+From 16dbe5168224b9f8a2b193f014f3dbf7e9604516 Mon Sep 17 00:00:00 2001
8+
+From: Daniel Murnane <[email protected]>
9+
+Date: Fri, 1 May 2020 08:19:28 -0400
10+
+Subject: [PATCH] Notify systemd on sentinel startup
11+
+
12+
+---
13+
+ src/server.c | 4 ++++
14+
+ 1 file changed, 4 insertions(+)
15+
+
16+
+diff --git a/src/server.c b/src/server.c
17+
+index 659604ef363..7ab7c39fd0a 100644
18+
+--- a/src/server.c
19+
++++ b/src/server.c
20+
+@@ -5111,6 +5111,10 @@ int main(int argc, char **argv) {
21+
+ } else {
22+
+ InitServerLast();
23+
+ sentinelIsRunning();
24+
++ if (server.supervised_mode == SUPERVISED_SYSTEMD) {
25+
++ redisCommunicateSystemd("STATUS=Ready to accept connections\n");
26+
++ redisCommunicateSystemd("READY=1\n");
27+
++ }
28+
+ }
29+
+
30+
+ /* Warning the user about suspicious maxmemory setting. */

redis-limit-systemd

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
# If you need to change max open file limit
22
# for example, when you change maxclient in configuration
3-
# you can change the LimitNOFILE value below
4-
# see "man systemd.exec" for information
3+
# you can change the LimitNOFILE value below.
4+
# See "man systemd.exec" for more information.
5+
6+
# Slave nodes on large system may take lot of time to start.
7+
# You may need to uncomment TimeoutStartSec and TimeoutStopSec
8+
# directives below and raise their value.
9+
# See "man systemd.service" for more information.
510

611
[Service]
712
LimitNOFILE=10240
13+
#TimeoutStartSec=90s
14+
#TimeoutStopSec=90s

redis.spec

+10-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
2020

2121
Name: redis
22-
Version: 6.0.3
22+
Version: 6.0.4
2323
Release: 1%{?dist}
2424
Summary: A persistent key-value database
2525
# redis, linenoise, lzf, hiredis are BSD
@@ -48,6 +48,8 @@ Source10: https://github.com/antirez/%{name}-doc/archive/%{doc_commit}/
4848
Patch0001: 0001-1st-man-pageis-for-redis-cli-redis-benchmark-redis-c.patch
4949
# https://github.com/antirez/redis/pull/3494 - symlink
5050
Patch0002: 0002-install-redis-check-rdb-as-a-symlink-instead-of-dupl.patch
51+
# https://github.com/antirez/redis/pull/7168 - notify systemd
52+
Patch0003: 0003-Notify-systemd-on-sentinel-startup.patch
5153
BuildRequires: gcc
5254
%if 0%{?with_tests}
5355
BuildRequires: procps-ng
@@ -127,6 +129,7 @@ administration and development.
127129
mv ../%{name}-doc-%{doc_commit} doc
128130
%patch0001 -p1
129131
%patch0002 -p1
132+
%patch0003 -p1
130133

131134
mv deps/lua/COPYRIGHT COPYRIGHT-lua
132135
mv deps/hiredis/COPYING COPYING-hiredis
@@ -274,6 +277,12 @@ exit 0
274277

275278

276279
%changelog
280+
* Thu May 28 2020 Remi Collet <[email protected]> - 6.0.3-3
281+
- Add comment for TimeoutStartSec and TimeoutStopSec in limit.conf
282+
- Fix missing notification to systemd for sentinel
283+
patch from https://github.com/antirez/redis/pull/7168
284+
- Upstream 6.0.4 release.
285+
277286
* Mon May 18 2020 Nathan Scott <[email protected]> - 6.0.3-1
278287
- Upstream 6.0.3 release.
279288

sources

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
SHA512 (redis-6.0.3.tar.gz) = 88978285db62cb8aa6e27fcd2075bbdb13f2606eaa702491047080bd6396d79d59336f0310d049d88a57e8e7b7096d716f9408b41cc658788a3902627770a807
2-
SHA512 (redis-doc-ee32a19.tar.gz) = 7158a24d35fdb811fcc398c7caca489912675784cdbc0b26cbb8f4c428814d36c32b986b3df3048d186ddae92290a70706b671d382f1afa04374d966e7e40ceb
1+
SHA512 (redis-6.0.4.tar.gz) = 8b0922fd7a9d03d4c21d4822da2c7b16a79c65151d3084b03bbacb35dfc2213a0847115c36ffbe8cc1e7b8664ed142e1e05e9f3f262a5e8a043849b398c7547d
2+
SHA512 (redis-doc-f092dd3.tar.gz) = 72305a13dc09e535e49015689078b4cef48466e38ce7815322dfffe8f22ad49be91a89752a2214c3788fff4e1c4e8c9f6de4846c659d8e1621db47199544e1f5

0 commit comments

Comments
 (0)