Johannes Truschnigg
ec5681f0f1
Do not install SysV init-scripts on systemd-enabled hosts
...
Also, hint at example service unit files if systemd is detected. Thanks
to @mika for spotting a bug in the original iteration of this patch.
2019-11-19 18:55:44 +02:00
Johannes Truschnigg
5bbc112fb1
Provide example systemd service unit files for redis-server
2019-11-19 18:55:44 +02:00
Johannes Truschnigg
641c64ada1
Use libsystemd's sd_notify for communicating redis status to systemd
...
Instead of replicating a subset of libsystemd's sd_notify(3) internally,
use the dynamic library provided by systemd to communicate with the
service manager.
When systemd supervision was auto-detected or configured, communicate
the actual server status (i.e. "Loading dataset", "Waiting for
master<->replica sync") to systemd, instead of declaring readiness right
after initializing the server process.
2019-11-19 18:55:44 +02:00
Oran Agra
ed2269762b
try to fix an unstable test (module hook for loading progress)
...
there were two lssues, one is taht BGREWRITEAOF failed since the initial one was still in progress
the solution for this one is to enable appendonly from the server startup so there's no initial aofrw.
the other problem was 0 loading progress events, theory is that on some
platforms a sleep of 1 will cause a much greater delay due to the context
switch, but on other platform it doesn't. in theory a sleep of 100 micro
for 1k keys whould take 100ms, and with hz of 500 we should be gettering
50 events (one every 2ms). in practise it doesn't work like that, so trying
to find a sleep that would be long enough but still not cause the test to take
too long.
2019-11-19 15:01:51 +02:00
Salvatore Sanfilippo
45025713a8
Merge pull request #6541 from artix75/module-long-double
...
Module API: add support for long double conversions and replies
2019-11-19 12:15:53 +01:00
Salvatore Sanfilippo
e7144fbed8
Merge branch 'unstable' into module-long-double
2019-11-19 12:15:45 +01:00
Salvatore Sanfilippo
e916058f0b
Merge pull request #6557 from oranagra/rm_lru_lfu_revized
...
rename RN_SetLRUOrLFU -> RM_SetLRU and RN_SetLFU
2019-11-19 11:58:07 +01:00
antirez
fe5aea38c3
Simplify PR #6551 implementation.
2019-11-19 11:56:02 +01:00
Salvatore Sanfilippo
065872e001
Merge pull request #6551 from pvalsecc/sentinel_kill_pubsub
...
Redis sentinel kill pubsub client connections as well
2019-11-19 11:53:10 +01:00
antirez
446f24e66d
Merge branch 'unstable' of github.com:/antirez/redis into unstable
2019-11-19 11:52:40 +01:00
Salvatore Sanfilippo
b311a368e0
Merge pull request #6558 from oranagra/module_testrdb_leak
...
fix leak in module api rdb test
2019-11-19 11:49:43 +01:00
antirez
936e01e5bb
Fix stream test after addition of 0-0 ID test.
2019-11-19 11:49:05 +01:00
Salvatore Sanfilippo
2151b82be9
Merge pull request #6571 from wangzhione/patch-2
...
Update adlist.h
2019-11-19 11:42:46 +01:00
Salvatore Sanfilippo
06a24b9cfa
Merge pull request #6597 from yossigo/rm-call-extended-errors
...
Improve RM_Call() errno classification.
2019-11-19 11:41:32 +01:00
Salvatore Sanfilippo
8e95064408
Merge pull request #6134 from zhouyuan/fix_aof
...
aof: fix assignment for aof_fsync_offset
2019-11-19 11:40:34 +01:00
Salvatore Sanfilippo
397a8b57cc
Merge pull request #6513 from oranagra/test_assertions
...
test infra: improve prints on failed assertions
2019-11-19 11:34:11 +01:00
antirez
ce03d68332
Rename var to fixed_time_expire now that is more general.
2019-11-19 11:28:04 +01:00
antirez
b42466b925
Fix patch provided in #6554 .
2019-11-19 11:23:43 +01:00
Salvatore Sanfilippo
6a9851c7f8
Merge pull request #6554 from soloestoy/unblock-as-call
...
expires & blocking: handle ready keys as call()
2019-11-19 11:14:05 +01:00
Yossi Gottlieb
2d1e893b3e
Improve RM_Call() errno classification.
...
RM_Call() will now use EBADF and ENONET in addition to EINVAL in order
to provide more information about errors (i.e. when return value is
NULL).
2019-11-19 12:10:48 +02:00
antirez
77ad9aaafe
Merge branch 'unstable' of github.com:/antirez/redis into unstable
2019-11-19 11:10:35 +01:00
Salvatore Sanfilippo
2f41c8d518
Merge pull request #6512 from MeirShpilraien/scan_module_impl
...
Added scan implementation to module api.
2019-11-19 11:08:15 +01:00
Salvatore Sanfilippo
656e40eed2
Merge branch 'unstable' into scan_module_impl
2019-11-19 11:08:02 +01:00
antirez
5b80a41cad
Remove additional space from comment.
2019-11-19 11:05:55 +01:00
Salvatore Sanfilippo
1530a3cfc6
Merge pull request #6577 from oranagra/module_doc
...
module docs, missing LOADING flag
2019-11-19 11:02:58 +01:00
Salvatore Sanfilippo
32a8301073
Merge pull request #4076 from yossigo/add_mt_replacevalue
...
Add RM_ModuleTypeReplaceValue.
2019-11-19 11:00:01 +01:00
Salvatore Sanfilippo
3d89210477
Merge pull request #3383 from yossigo/datatype_load_save
...
Redis Module API calls to allow re-use of data type RDB save/load.
2019-11-19 10:55:42 +01:00
Salvatore Sanfilippo
a7122f4518
Merge pull request #6579 from oranagra/rm_reply_string_opt
...
Slightly more efficient RM_ReplyWithEmptyString
2019-11-19 10:54:00 +01:00
Salvatore Sanfilippo
70016f7861
Merge pull request #6574 from guybe7/fix_xadd_empty_id
...
XADD with ID 0-0 stores an empty key
2019-11-19 10:50:45 +01:00
Salvatore Sanfilippo
64a78f5ba3
Merge pull request #6596 from wangzhione/patch-5
...
Update mkreleasehdr.sh
2019-11-19 10:48:32 +01:00
喜欢兰花山丘
7c95e89ec3
Update mkreleasehdr.sh
...
fix date +%s errata
2019-11-19 17:23:47 +08:00
Daniel Dai
4ece8bd7a7
fix move command
2019-11-19 00:02:45 -05:00
antirez
3243252cb0
Expire cycle: document expire effort in redis.conf.
2019-11-18 18:11:38 +01:00
antirez
e8ceba4e64
Expire cycle: set a buckets limit as well.
2019-11-18 17:47:19 +01:00
antirez
2ab51a644d
Expire cycle: fix parameters computation.
2019-11-18 11:43:42 +01:00
antirez
1ccc270a2c
Expire cycle: make expire effort configurable.
2019-11-18 11:33:44 +01:00
antirez
84b01f63db
Expire cycle: introduce configurable effort.
2019-11-18 11:30:05 +01:00
John Sully
72bbf16c2f
Fix failure to wakeup from futex sleep due to fastlock_unlock reading the wrong offset in the asm version. Also fix false sharing in spinlock
...
Former-commit-id: 4c8603815cf525c75dcc360fddeab9ca6fe70ae6
2019-11-17 16:06:49 -05:00
John Sully
a27c1c9f0a
Revert "Debug sleep should apply to all threads"
...
This reverts commit b8cc7e2b9c9223de33c1d6513decb80261998461 [formerly 41b678814b2c2ff93935b57e630028aaf2e9ae62].
Former-commit-id: 3ae75c2d2bd952d0a075b9ba257a08f962fe0739
2019-11-17 15:39:47 -05:00
John Sully
baffeff5c7
Improve perf of reading cluster bitfield
...
Former-commit-id: 9371c005aa7ffc2060b1b787e4268bc25336ca15
2019-11-17 14:52:12 -05:00
antirez
2766805680
Expire cycle: tollerate less stale keys, expire cycle CPU in INFO.
2019-11-15 11:29:34 +01:00
antirez
ffc7e509aa
Expire cycle: scan hash table buckets directly.
2019-11-15 10:53:19 +01:00
John Sully
c34fee9ed4
Merge branch 'unstable' of https://github.com/JohnSully/KeyDB into unstable
...
Former-commit-id: 16bd6b3f5d6f8d45c7a7202bd34974b31da2fdec
2019-11-14 21:21:46 -05:00
John Sully
a098681bbf
Cluster multithreading fixes
...
Former-commit-id: 3dd78a6101df0a980e520dcb55d80651bfc5a3a7
2019-11-14 20:14:24 -05:00
John Sully
b8cc7e2b9c
Debug sleep should apply to all threads
...
Former-commit-id: 41b678814b2c2ff93935b57e630028aaf2e9ae62
2019-11-14 19:57:29 -05:00
John Sully
93844525ea
killing clients should take effect ASAP
...
Former-commit-id: d0ccb074d5451cd457fe88efeb007cdb9746cb7f
2019-11-14 19:49:32 -05:00
John Sully
451c6e81f4
Improve AE Assert message
...
Former-commit-id: cb0fc7cca2406cf24fc238d6b6e1247c60d86704
2019-11-14 19:34:13 -05:00
antirez
2f6fe5ce3a
Expire cycle: introduce the new state needed for the new algo.
2019-11-14 18:28:01 +01:00
antirez
8d50a8327e
Rax library updated.
2019-11-14 12:48:54 +01:00
Oran Agra
c426bbf3a5
Slightly more efficient RM_ReplyWithEmptyString
...
trimming talk about RESP protocol from API docs (should be independent to that anyway)
2019-11-14 09:46:46 +02:00