- 15 11月, 2019 2 次提交
- 14 11月, 2019 1 次提交
-
-
由 antirez 提交于
-
- 07 11月, 2019 1 次提交
-
-
由 antirez 提交于
-
- 06 11月, 2019 1 次提交
-
-
由 antirez 提交于
One problem with the solution proposed so far in #6537 is that key lookups outside a command execution via call(), still used a cached time. The cached time needed to be refreshed in multiple places, especially because of modules callbacks from timers, cluster bus, and thread safe contexts, that may use RM_Open(). In order to avoid this problem, this commit introduces the ability to detect if we are inside call(): this way we can use the reference fixed time only when we are in the context of a command execution or Lua script, but for the asynchronous lookups, we can still use mstime() to get a fresh time reference.
-
- 05 11月, 2019 6 次提交
-
-
由 antirez 提交于
After the thread in #6537 and thanks to the suggestions received, this commit updates the original patch in order to: 1. Solve the problem of updating the time in multiple places by updating it in call(). 2. Avoid introducing a new field but use our cached time. This required some minor refactoring to the function updating the time, and the introduction of a new cached time in microseconds in order to use less gettimeofday() calls.
-
由 zhaozhao.zz 提交于
Calling lookupKey*() many times to search a key in one command may get different result. That's because lookupKey*() calls expireIfNeeded(), and delete the key when reach the expire time. So we can get an robj before the expire time, but a NULL after the expire time. The worst is that may lead to Redis crash, for example `RPOPLPUSH foo foo` the first time we get a list form `foo` and hold the pointer, but when we get `foo` again it's expired and deleted. Now we hold a freed memory, when execute rpoplpushHandlePush() redis crash. To fix it, we can refactor the judgment about whether a key is expired, using the same basetime `server.cmd_start_mstime` instead of calling mstime() everytime.
-
由 Salvatore Sanfilippo 提交于
Test coverage for new module APIs: dbsize, flushall, randomkey, lru get/set
-
由 Oran Agra 提交于
-
由 Salvatore Sanfilippo 提交于
fix unreported overflow in autogerenared stream IDs
-
由 Salvatore Sanfilippo 提交于
Module API for loading and saving long double
-
- 04 11月, 2019 10 次提交
-
-
由 Loris Cro 提交于
-
由 Loris Cro 提交于
update to latest unstable
-
由 Salvatore Sanfilippo 提交于
Module API for controlling LRU and LFU, and OpenKey without TOUCH
-
由 Salvatore Sanfilippo 提交于
-
由 Salvatore Sanfilippo 提交于
Module API for PUBLISH, FLUSHALL, RANDOMKEY, DBSIZE
-
由 Salvatore Sanfilippo 提交于
Modules: Test RedisModule_BlockClientOnKeys
-
由 Salvatore Sanfilippo 提交于
Modules hooks: complete missing hooks for the initial set of hooks
-
由 Salvatore Sanfilippo 提交于
-
由 Guy Benoish 提交于
-
由 Oran Agra 提交于
-
- 03 11月, 2019 1 次提交
-
-
由 Oran Agra 提交于
looks like each platform implements long double differently (different bit count) so we can't save them as binary, and we also want to avoid creating a new RDB format version, so we save these are hex strings using "%La". This commit includes a change in the arguments of ld2string to support this. as well as tests for coverage and short reads. coded by @guybe7
-
- 01 11月, 2019 4 次提交
- 31 10月, 2019 6 次提交
-
-
由 antirez 提交于
-
由 antirez 提交于
-
由 antirez 提交于
-
由 antirez 提交于
Using the is_key_ready() callback plus the reply callback later, creates different issues AFAIK: 1. More complex API. 2. We need to call the reply callback() ASAP if the is_key_ready() interface returned success, however the internals do not work in that way, so when the reply callback is called the setup could be different. To fix that, there is to break the current design that handles the unblocked clients asyncrhonously, and run the list ASAP.
-
由 antirez 提交于
Now we handle propagation when we free the context.
-
由 antirez 提交于
-
- 30 10月, 2019 3 次提交
- 29 10月, 2019 5 次提交
-
-
由 Oran Agra 提交于
* replication hooks: role change, master link status, replica online/offline * persistence hooks: saving, loading, loading progress * misc hooks: cron loop, shutdown, module loaded/unloaded * change the way hooks test work, and add tests for all of the above startLoading() now gets flag indicating what is loaded. stopLoading() now gets an indication of success or failure. adding startSaving() and stopSaving() with similar args and role.
-
由 Oran Agra 提交于
Some commands would want to open a key without touching it's LRU/LFU similarly to the OBJECT or DEBUG command do. Other commands may want to implement logic similar to what RESTORE does (and in the future MIGRATE) and get/set the LRU or LFU.
-
由 Salvatore Sanfilippo 提交于
Module API for explicit SignalModifiedKey instead of implicit one.
-
由 Salvatore Sanfilippo 提交于
Add Github action for CI
-
由 Salvatore Sanfilippo 提交于
Fix compilation error introduced by cee6dead
-