Kefu Chai
8f390997cb
db: do not use std::cmp_not_equal() when appropriate
...
this change is a follow-up of 3129ae3c8c .
since in both cases in this change, the `num_ranges` should always
be greater than zero, there is no need to use `int` for its type,
and "num_ranges" returned by the CQL query should always be greater
or equal to zero, so there is no need to check if it is positive.
in this change, we
* change the type of `num_ranges` to `size_t`
* change std::cmp_not_equal() to !=
to avoid using the verbose `std::cmp_not_equal()` helper, for better
readability.
Signed-off-by: Kefu Chai <kefu.chai@scylladb.com >
Closes #14754
2023-07-19 13:25:21 +03:00
..
2023-06-21 00:58:24 +02:00
2023-04-21 10:07:28 +03:00
2023-07-17 16:05:07 +02:00
2023-02-19 21:05:45 +02:00
2023-03-13 13:35:17 +02:00
2023-07-19 11:46:28 +03:00
2023-04-21 09:08:27 +03:00
2023-03-06 13:28:40 +03:00
2023-06-26 15:29:01 +02:00
2023-02-28 23:00:02 +04:00
2023-07-12 15:26:54 +03:00
2023-07-14 16:20:48 +03:00
2023-07-14 09:03:01 +03:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2023-07-10 19:36:06 +02:00
2023-06-14 11:41:36 +02:00
2023-03-12 14:04:34 +02:00
2023-03-12 14:04:34 +02:00
2023-04-14 13:21:30 +08:00
2023-03-19 15:16:02 +02:00
2023-03-27 15:12:31 +00:00
2023-03-27 15:12:31 +00:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2023-04-14 13:21:30 +08:00
2023-02-15 11:01:50 +02:00
2023-02-15 22:57:18 +02:00
2022-05-13 07:11:58 +02:00
2022-06-22 20:07:58 +02:00
2023-02-15 11:01:50 +02:00
2023-02-15 11:01:50 +02:00
2022-06-22 20:16:48 +02:00
2023-03-16 20:34:18 +08:00
2022-11-28 21:58:30 +02:00
2023-07-17 12:00:49 +03:00
2022-06-22 20:16:48 +02:00
2022-06-22 20:16:48 +02:00
2022-05-13 07:11:58 +02:00
2022-07-18 14:18:48 +02:00
2023-07-03 14:19:54 +03:00
2023-06-21 00:58:24 +02:00
2023-06-21 00:58:24 +02:00
2023-06-06 13:29:16 +03:00
2022-12-05 08:14:39 +02:00
2022-09-26 11:02:54 +03:00
2023-03-21 09:56:18 +03:00
2022-05-16 14:14:14 +03:00
2023-07-19 13:25:21 +03:00
2023-03-14 19:26:05 +04:00
2022-03-25 16:19:26 +02:00
2023-07-19 13:25:21 +03:00
2023-06-18 13:39:27 +02:00
2022-01-18 12:15:18 +01:00
2023-06-21 00:58:24 +02:00
2023-02-17 07:11:18 +02:00
2023-07-18 10:27:18 +08:00
2023-07-12 15:26:54 +03:00
2022-05-13 07:11:58 +02:00