Chen Tianjie
897c3d522c
Add CLIENT NO-TOUCH for clients to run commands without affecting LRU/LFU of keys ( #11483 )
...
When no-touch mode is enabled, the client will not touch LRU/LFU of the
keys it accesses, except when executing command `TOUCH`.
This allows inspecting or modifying the key-space without affecting their eviction.
Changes:
- A command `CLIENT NO-TOUCH ON|OFF` to switch on and off this mode.
- A client flag `#define CLIENT_NOTOUCH (1ULL<<45)`, which can be shown
with `CLIENT INFO`, by the letter "T" in the "flags" field.
- Clear `NO-TOUCH` flag in `clearClientConnectionState`, which is used by `RESET`
command and resetting temp clients used by modules.
- Also clear `NO-EVICT` flag in `clearClientConnectionState`, this might have been an
oversight, spotted by @madolson.
- A test using `DEBUG OBJECT` command to verify that LRU stat is not touched when
no-touch mode is on.
Co-authored-by: chentianjie <chentianjie@alibaba-inc.com>
Co-authored-by: Madelyn Olson <34459052+madolson@users.noreply.github.com>
Co-authored-by: sundb <sundbcn@gmail.com>
2023-02-23 09:07:49 +02:00
..
2023-02-23 09:07:49 +02:00
2022-04-05 17:08:27 +03:00
2012-04-13 17:52:33 -07:00
2023-02-16 08:07:35 +02:00
2023-01-20 13:18:52 -08:00
2022-11-23 17:39:08 +02:00
2021-04-26 15:52:06 +03:00
2022-01-30 19:43:37 +02:00
2021-09-02 11:07:51 +03:00
2022-06-07 14:47:09 +03:00
2022-11-25 20:36:33 -08:00
2022-01-18 13:10:07 +02:00
2022-08-22 15:01:40 +08:00
2022-08-22 15:01:40 +08:00
2023-02-19 16:33:19 +02:00
2021-03-10 19:11:16 +02:00
2022-08-03 19:38:08 +03:00
2023-02-12 09:23:29 +02:00
2023-02-12 09:23:29 +02:00
2022-10-02 15:15:14 +03:00
2023-02-09 14:59:05 +02:00
2022-06-01 13:04:22 +03:00
2022-03-22 14:13:28 +02:00
2022-11-12 20:35:34 +02:00
2022-04-12 18:55:11 +03:00
2022-03-05 21:25:52 +02:00
2023-02-19 16:33:19 +02:00
2023-02-02 09:06:24 -08:00
2023-02-23 09:07:49 +02:00
2023-02-19 16:33:19 +02:00
2023-02-12 09:23:29 +02:00
2022-09-06 09:04:33 +03:00
2023-01-04 10:52:56 +02:00
2021-06-10 15:39:33 +03:00
2019-03-01 17:53:14 +01:00
2015-07-26 15:17:18 +02:00
2021-11-16 08:55:10 +02:00
2021-11-16 08:55:10 +02:00
2021-06-10 15:39:33 +03:00
2020-04-24 17:11:21 -07:00
2023-02-23 09:07:49 +02:00
2023-02-19 16:33:19 +02:00
2022-02-06 20:13:34 -08:00
2023-01-20 18:45:29 +02:00
2023-01-20 18:45:29 +02:00
2023-01-20 18:45:29 +02:00
2022-07-18 10:56:26 +03:00
2021-11-16 08:55:10 +02:00
2023-02-19 16:33:19 +02:00
2022-12-20 09:51:50 +02:00
2023-02-20 10:23:25 +02:00
2021-02-23 12:57:45 +02:00
2022-08-14 11:50:18 +03:00
2023-01-11 09:59:24 +01:00
2022-04-05 10:27:24 +03:00
2022-12-04 10:11:38 +02:00
2015-07-26 15:17:18 +02:00
2022-12-05 15:45:04 +02:00
2021-04-29 08:25:10 +03:00
2022-04-04 15:35:49 +03:00
2022-02-08 16:49:47 +02:00
2022-10-22 20:41:17 +03:00
2023-01-31 17:26:35 +02:00
2022-11-09 19:50:07 +02:00
2022-11-09 19:50:07 +02:00
2022-05-22 17:10:31 +03:00
2022-05-22 17:10:31 +03:00
2022-11-16 20:29:46 +02:00
2021-02-16 16:17:38 +02:00
2022-12-06 11:25:51 +02:00
2022-12-06 11:25:51 +02:00
2022-03-09 13:58:23 +02:00
2021-06-10 15:39:33 +03:00
2021-06-10 15:39:33 +03:00
2021-06-10 15:39:33 +03:00
2020-05-05 23:35:08 -04:00
2021-11-16 13:12:25 +02:00
2021-11-16 13:12:25 +02:00
2021-11-16 13:12:25 +02:00
2021-11-16 13:12:25 +02:00
2022-11-07 19:11:12 +02:00
2021-11-11 13:51:33 +02:00
2022-08-23 12:37:56 +03:00
2023-02-16 08:07:35 +02:00
2022-04-20 14:00:30 +03:00
2022-04-20 14:00:30 +03:00
2020-12-23 15:52:07 +02:00
2020-12-23 15:52:07 +02:00
2022-11-27 10:18:48 +02:00
2023-02-23 09:07:49 +02:00
2022-04-17 15:43:22 +03:00
2023-01-31 17:26:35 +02:00
2022-04-04 18:38:18 +03:00
2012-11-08 18:31:32 +01:00
2023-01-11 09:59:24 +01:00
2022-11-16 20:29:46 +02:00
2022-11-16 20:29:46 +02:00
2014-08-08 10:05:32 +02:00
2012-11-08 18:31:32 +01:00
2017-03-27 16:37:22 +02:00
2022-10-02 13:56:45 +03:00
2020-09-10 13:43:38 +03:00
2023-02-19 16:33:19 +02:00
2023-02-12 09:23:29 +02:00
2023-02-02 09:18:22 -08:00
2022-11-06 14:49:55 +02:00
2022-11-09 19:50:07 +02:00
2023-01-11 09:59:24 +01:00
2018-07-13 10:51:58 +02:00
2021-11-11 13:51:33 +02:00
2022-06-19 08:42:12 +03:00
2023-02-09 14:59:05 +02:00
2022-08-23 12:37:56 +03:00
2023-02-19 16:33:19 +02:00
2021-08-04 16:28:07 +03:00
2022-04-10 09:29:50 +03:00
2023-02-12 09:23:29 +02:00
2023-02-12 09:23:29 +02:00
2023-02-19 16:33:19 +02:00
2022-04-27 00:37:40 +03:00
2023-02-16 08:07:35 +02:00
2023-02-16 08:07:35 +02:00
2023-01-31 17:26:35 +02:00
2023-01-31 17:26:35 +02:00
2020-12-06 14:54:34 +02:00
2023-02-19 16:33:19 +02:00
2023-02-19 16:33:19 +02:00
2023-02-23 09:07:49 +02:00
2020-10-25 14:14:05 +02:00
2021-02-23 12:57:45 +02:00
2022-11-24 15:27:16 +02:00
2021-11-16 08:55:10 +02:00
2021-11-11 13:51:33 +02:00
2021-07-10 10:04:54 -05:00
2021-11-11 13:51:33 +02:00
2021-06-14 16:46:45 +03:00
2021-12-15 21:23:15 +02:00
2023-01-04 10:52:56 +02:00
2015-01-09 11:23:22 +01:00
2023-01-16 13:49:30 +02:00
2020-09-10 13:43:38 +03:00
2014-07-02 16:31:22 +02:00
2022-11-30 14:21:31 +02:00
2022-07-18 10:56:26 +03:00
2015-08-06 18:12:20 +02:00
2023-01-22 16:32:20 +02:00
2022-05-22 17:10:31 +03:00
2023-01-16 13:51:18 +02:00
2023-01-01 23:35:42 +02:00
2023-01-20 18:45:29 +02:00
2023-01-01 23:35:42 +02:00
2023-01-16 13:49:30 +02:00
2023-01-16 13:51:18 +02:00
2023-02-16 10:50:58 +02:00
2023-01-08 01:02:48 -08:00
2023-01-04 10:52:56 +02:00
2023-02-21 08:14:41 -08:00
2023-01-04 10:52:56 +02:00
2023-02-16 10:50:58 +02:00
2023-02-12 09:23:29 +02:00
2020-12-06 14:54:34 +02:00
2020-10-11 17:21:58 +03:00
2022-10-07 21:24:54 +03:00
2021-11-16 08:55:10 +02:00
2021-11-16 08:55:10 +02:00
2021-11-16 08:55:10 +02:00
2023-01-20 18:45:29 +02:00
2022-09-05 16:09:28 +03:00