github.com/redis/redis
Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, Streams, HyperLogLogs, Bitmaps.
https://github.com/redis/redis
This is just a cleanup, no bugs in the real world.
Co-authored-by: Oran Agra <oran@redislabs....
c4b52fc7c9e77fb1f2719d2cb5b9977b90698721 authored about 4 years ago
The commit deals with the syncWithMaster and the ugly state machine in it.
It attempts to clean ...
This is just a refactoring commit.
This function was never actually used as a synchronous (do b...
9bd212cf241154d22849ef2addd0d5a7551b3a55 authored about 4 years agoSigned-off-by: xhe <[email protected]>
ef14c18c8e83f3f11f5436e3dbeee9dfd5665de1 authored about 4 years agoCo-authored-by: Oran Agra <[email protected]>
98f39a37fb14f2b1c1965de143011402728dafbc authored about 4 years agoCo-authored-by: Oran Agra <[email protected]>
723b4a15a34ce25490882f40ef51b24a5b61304c authored about 4 years agoCo-authored-by: Oran Agra <[email protected]>
c07d3bd8dd8ba108f743c09b059f157e9799d5c5 authored about 4 years agoCo-authored-by: Oran Agra <[email protected]>
456c347d4520bce417e48d0d01a87035483755a5 authored about 4 years agoSigned-off-by: xhe <[email protected]>
60f13e7a865f7c0d4908b25803f42058c7a19201 authored about 4 years ago35fc7fda7aac1699cf6f7ba902cf414d07c1cd3b authored about 4 years ago
Signed-off-by: xhe <[email protected]>
50d750733e52dd9fff26fbcf8274d8d6c81ebfca authored about 4 years agoSigned-off-by: xhe <[email protected]>
7a7c60459e0853b1880bd1692fb15c4b67e00fa9 authored about 4 years agoSigned-off-by: xhe <[email protected]>
2e8f8c9b0c08d8c7c8b4dc72d65285d2761c5183 authored about 4 years agoAs discussed in https://github.com/antirez/redis/issues/7364, it is good
to have a HELLO command ...
Cleanup key tracking documentation, always cleanup the tracking table, and free the tracking tab...
59ff42c42156dcf4a5d9b637d8cb20c37ddc5c65 authored about 4 years agoProperly throw errors for invalid replication stream and support https://github.com/redis/redis/...
efaf09ee4b6437c69c467acdb0c62a510207e993 authored about 4 years ago55abd1c6d078e0d30ee01a819f069fa7737c3dc2 authored about 4 years ago
58e9c261152819bfa5fe8d37ea943340c3575421 authored about 4 years ago
Apparently the "leaks" took reports a different error string about process
that's not found in ...
When a database on a 64 bit build grows past 2^31 keys, the underlying hash table expands to 2^3...
266949c7fcfab9d10f81314fd7480a00638ced80 authored about 4 years ago
This isn't a leak, just an warning due to unreachable
allocation on the fork child.
Problem cr...
Homebrew for darwin-arm64 uses /opt/homebrew instead of /usr/local as
the prefix, so that it ca...
781d7b0d9b51d1d80097c1f6ddec6270c1532ede authored about 4 years ago
Turns out that when the fork child crashes, the crash log was deleting
the pidfile from the dis...
Normally IO threads should simply read data from the socket into the
buffer and attempt to pars...
In the distant history there was only the read flag for commands, and whatever
command that did...
* Fix some redundancy use of semicolon in do-while macros
4bc14da2b3330c7ce8b9366ea3880eba65ba2ff9 authored about 4 years ago
- Mark it as a @hyperloglog command (ACL)
- Should not be allowed in OOM
- Add firstkey, lastk...
51eb0da824d2dae45bf5966e83f2089fba8d9c24 authored about 4 years ago
In response to large client query buffer optimization introduced in 1898e6c. The calculation of ...
11b3325e9999721d35ec64afac7b917664f6291b authored about 4 years ago* Handle binary safe string for REQUIREPASS and MASTERAUTH directives.
f48afb4710e6e102b043add55a0649b22ef4a4ab authored about 4 years ago0f3e0cb4adf6bdbb7dbd70679d129ad5a528df9d authored about 4 years ago
mostly signed / unsigned mismatches.
Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gma...
a56cbd30366ac7776bcd71e2ac8d9c421ca54cc8 authored about 4 years ago407da77ea4f6de622d6f242ad16580aa6f4e7b85 authored about 4 years ago
If we only has one node in cluster or before 8fdc857, we don't know myself ip, so we should use ...
6413e5f81a8b6296f4bb57cae11f5b2534f5f663 authored about 4 years ago4f67d0b647caba9fa301a1a604214c0ecc40940a authored about 4 years ago
1f42bd70572c8e85fa431a66952c7b79eb182a87 authored about 4 years ago
Fix wrong server dirty increment in
* spopWithCountCommand
* hsetCommand
* ltrimCommand
* pf...
And formats style a tiniee-winiee bit
9acd40d97b00aefeae1ae8f523cd9b0adde80d81 authored about 4 years agocfb449cc8066a0b1f0225b6278241d0d9d20a779 authored about 4 years ago
Additionally the older defrag tests are using an obsolete way to check
if the defragger is suup...
This is a backport of redis/hiredis@b9b9f44.
Co-authored-by: michael-grunder <michael.grunder...
1e301ff83e2f0d8e63646a6689aacc021729e181 authored about 4 years ago
Exposes the main thread CPU info via info modules ( linux specific only )
(used_cpu_sys_main_th...
* Allow runtest-moduleapi use a different 'make', for systems where GNU Make is 'gmake'.
* Fix ...
f74c32cad27fcd078f7bb8517c87be178e7339eb authored about 4 years ago
When a replica uses the diskless-load swapdb approach, it backs up the old database,
then attem...
8a23ca0b28f4b6cfe7db5a77457b635cee1a855a authored about 4 years ago
5abdf9a556e22b7528af3fcc3dcc7964d1ad6d66 authored about 4 years ago
without this option, redis-cli returns 0 even if command fails. kept this for backwards compatib...
bde33501c41e3cb49174fb282164e5ccb532a4f8 authored about 4 years agoe3ff414513895eff6ebf6564a9864c479ec36d25 authored about 4 years ago
Add a new set of defrag functions that take a defrag context and allow
defragmenting memory blo...
The pid of the benchmark process is used to randomize the random number generator's
seed. This ...
Partial resolution for #6860, item 7
feba7cbf4d75f7822f34bd67a56b2ef4a755eff9 authored about 4 years agoAdd commands to query geospatial data with bounding box.
Two new commands that replace the ex...
4d06d99bf8fc91289c79ae07110c92525ab1c1f8 authored about 4 years ago
This adds a new `tls-client-cert-file` and `tls-client-key-file`
configuration directives which...
This adds a copy callback for module data types, in order to make
modules compatible with the n...
Fixes #8165.
cf3d79d4c10c5ca4e485ce29c288825d582ca067 authored about 4 years ago6a3c4ac50a6666feb09de1561b1c483dc2a1891e authored about 4 years ago
Module blocked clients cache the response in a temporary client,
the reply list in this client ...
c4fdf09c0 added a test that now fails with valgrind
it fails for two resons:
1) the test sampl...
had some unused variables.
now some are used to assert that they match, others were useless.
00db1b5579d1b633a6f6ee9e99e4ee2a03fcb6dc authored about 4 years ago
37f45d9e5677e75bc396af5e3d8864125f026969 authored about 4 years ago
Makes spt_init more careful with assumptions about what memory regions
may be overwritten. It w...
This is a cleanup commit that doesn't fix any bug, however it does change the error response tex...
09b7f6c2a10d5c50bad64953f9a31e04f81c0444 authored about 4 years ago
when the same consumer re-claim an entry that it already has, there's
no need to remove-and-ins...
b5e99bd0645557b204703ec0e54aa2051fc122ee authored about 4 years ago
* Add CLIENT INFO subcommand.
The output is identical to CLIENT LIST but provides a single li...
bccbc5509a1fe3ebee48904bd2418d9e665d2a5a authored about 4 years agoec951cdc1555f544abe3c5468509e2148bdd4c3c authored about 4 years ago
If RESTORE passes successfully with full sanitization, we can't affort
to crash later on asserti...
When loading an encoded payload we will at least do a shallow validation to
check that the size ...
When RDB input attempts to make a huge memory allocation that fails,
RESTORE should fail gracefu...
First, if the ziplist header is surely inside the ziplist, do fast path
decoding rather than the...
when using --baseport to run two tests suite in parallel (different
folders), we need to also ma...
The test creates keys with various encodings, DUMP them, corrupt the payload
and RESTORES it.
It...
- improve stream rdb encoding test to include more types of stream metadata
- add test to cover ...
When client tracking is enabled signalModifiedKey can increase memory usage,
this can cause the...
One way this was happening is when a module issued an RM_Call which would inject MULTI.
If the ...
As we know, redis may reject user's requests or evict some keys if
used memory is over maxmemor...
bug was introduced in 1a91a2700b
2f41a3856845265ffc6cc3a35524883a8690cff7 authored about 4 years agoAdds the ability to use exclusive (open) start and end query intervals in XRANGE and XREVRANGE q...
441c49002461f14d1aeed5571112d57793df6bb0 authored about 4 years ago
In the iterator for these functions, we'll traverse the sorted sets
in a reversed way so that l...
7459652e3e4dbc7d8330ddc860a2585effaead0e authored about 4 years ago
When replica diskless-load type is swapdb in cluster mode, we didn't backup
keys to slots map, ...
84e0489562a0f61b95755dc863bfca79c23b6ef0 authored about 4 years ago
As described in redis-benchamrk help message 'The test names are the same as the ones produced a...
7885faf18b776eaed4a7ddcf8fb8bce699820eea authored about 4 years ago* Fixed SET GET executing on wrong type
Co-authored-by: Madelyn Olson <[email protected]>
69b7113bb52360f330d184b5b270625d35902ad6 authored about 4 years ago
SELECT used to read the index into a `long` variable, and then pass it to a function
that takes...
Fixes #7923.
This PR appropriates the special `&` symbol (because `@` and `*` are taken),
fo...
On FLUSHDB or full sync, reset old average TTL stat.
This Stat is incrementally collected by th...
when performing the and operation, if the output is 0, we can jump out of the loop.
when perfor...
See https://github.com/redis/redis-doc/pull/1443
Also allows nameless commands.
d322e7baba3065eb3ff03ca90e4a9a4484aaa3a7 authored about 4 years ago
Used to filter stream pending entries by their idle-time,
useful for XCLAIMing entries that hav...
we recently did that for SETRANGE and APPEND
cb5eadb33b2ff38e8c1bf31ccf4c864339a96bf4 authored about 4 years agothis metric already includes the argv bytes, like what clientsCronTrackClientsMemUsage does, but...
bbc2c44541fbb50c5d1fc001afe2d2fca3a42eda authored about 4 years agoMerge two aeDeleteFileEvent refs into one
cf88779527c769906f66eb39e9d58e9ee63fcba0 authored about 4 years ago79a7c17176f109b81af171ce564b0354febbfd3f authored about 4 years ago
__ILP32__ is 32 bits ABI and does not imply x86, this patch resolves this.
0719388cfb1a79160204314beb1de1f9c29a3684 authored about 4 years ago
Avoid multiple conditional judgments
Avoid allocating robj->ptr when we're gonna replace it rig...
Seems to have gone unnoticed for a long time, because at least with
glibc it will only be trigg...