Richard Fuchs
27ff6e6f57
MT#55283 convert last_redis_update to int64_t
...
Change-Id: Id521b8b87ae2366c341e4b9871f253a24e750538
3 weeks ago
Richard Fuchs
aadaa7620f
MT#55283 obsolete some timeval_from_us
...
Change-Id: Ie290c227e9120194732bfad32a56308f6cbd1db4
3 weeks ago
Richard Fuchs
a4bd720105
MT#55283 convert time_t to int64_t
...
Change-Id: I9664249782355f7363a46bafcca6504415585875
3 weeks ago
Richard Fuchs
ad65c9096f
MT#55283 convert call structs to int64_t
...
Change-Id: If1a077d206d96914651b3e4624e7fc09f239ed09
3 weeks ago
Richard Fuchs
7b9ec8699f
MT#55283 convert last_packet to int64_t
...
Change-Id: Ib199a61352865566e45d5957aa520099d86066ee
3 weeks ago
Richard Fuchs
952429aa89
MT#55283 convert last_packet to int64_t
...
Change-Id: I21aec3c852a213c433b3a6c62d8b039303ec0f01
3 weeks ago
Richard Fuchs
165c42fb8e
MT#55283 convert calls to int64_t
...
Change-Id: I7c9a2229ba3eea418e009bb04def336476d2ec25
3 weeks ago
Richard Fuchs
c70510303a
MT#55283 convert rtpe_now to int64_t
...
First step in converting (almost) all timeval uses to int64_t
Change-Id: If20fd749c61c278273c535b68287df7e6f042808
3 weeks ago
Richard Fuchs
d75e44829d
MT#55283 replace UINT64F with PRIu64
...
Change-Id: I604226d2515dae6b7a348426b5e997dafc840042
3 weeks ago
Richard Fuchs
21de8d4b94
MT#55283 modernise timeval_subtract
...
Change-Id: I7715ee92e12e88d69e3f714a6714f691646e240c
3 months ago
Richard Fuchs
347c21fc7e
MT#55283 use typed GQueue
...
Change-Id: Iea5a5e988ea23a17a5b2da5f02cd972afae2db87
3 months ago
Richard Fuchs
267d244cb4
MT#55283 use array instead of hash table
...
Change-Id: Ie510523724d14d8c76bb9647ee184ea3756be06c
3 months ago
Richard Fuchs
3f15e3a494
MT#55283 add blank line to separate interfaces
...
Change-Id: I0c9b9bf4122fea54eb9f80f0a9464efc74054141
3 months ago
Richard Fuchs
fb1ad3f0cf
MT#55283 properly support empty keyspace list
...
If keyspace notifications are used at all, the respective objects and
threads must be created during startup. This requires at least some
keyspace to be configured. To support usage without any keyspaces
initially (and add them during runtime), add a special case (set
keyspace to -1).
Convert all keyspace variables to signed ints. Ignore negative keyspace
numbers where appropriate. Support Redis endpoint addresses without
database number.
Fixes #1902
Change-Id: I45a3c87bc515f9b14e64ec1ec0906dde271b5f8d
3 months ago
Richard Fuchs
6dbf098bc7
MT#55283 safeguard against incorrect usage
...
If keyspace notifications are not configured at all, bail with an error
when there is an attempt to add a new keyspace or remove one. We get a
segfault otherwise.
Closes #1902
Change-Id: Ie47cf5f7762792aabe38476739f0dcf9927787ce
3 months ago
Richard Fuchs
c07ab48457
MT#55283 whitespace/typo cleanups
...
Change-Id: I949a715f1037df2c84c84565df8ea0fda14be191
3 months ago
Richard Fuchs
b4c1dc8e1f
MT#61630 support evicting multiple cache entries
...
Change-Id: Ia332a6ba8b56d02bac8adefd9cff78ced4e5abc2
3 months ago
Richard Fuchs
048d745dfe
MT#55283 replace internal help with generated one
...
Change-Id: I2bab78c0a1ce85c1868398d48bcd2a3bab847ee2
4 months ago
Richard Fuchs
2c2daa920a
MT#55283 embed help into CLI data
...
Change-Id: Ic10a82f27653d400f75a2bcab65a7936431e2e94
4 months ago
Richard Fuchs
f19737a53f
MT#55283 add return value to cw_printf
...
Change-Id: Ibd4b6b18adb86919d99c258e526d79d4ab5d8ce1
4 months ago
Richard Fuchs
42c46f2d68
MT#55283 use string hashing for CLI parsing
...
Change-Id: I270deca0e5fc9f07be501f9a4c336244fc50be9b
4 months ago
Richard Fuchs
8e50664fa1
MT#55283 refactor CLI structures with macros
...
No functional change.
Change-Id: I8fa9b9d6ee61aafadf01016bd2ed64be6cdbfef8
4 months ago
Richard Fuchs
d707e206ea
MT#61822 track and report cache mtimes and atimes
...
Change-Id: Idaaebe925aa26275002bb2c436b13216c7e99064
4 months ago
Richard Fuchs
9673703476
MT#61822 add new "CLI" NG command
...
Change-Id: Idd4114783b1bb6cc683970110a2f322ec07b894a
4 months ago
Richard Fuchs
d436c1d361
MT#61822 support evicting player cache data
...
Change-Id: I58c1127f2b906a3e238a2dc8579d433abe72c50b
4 months ago
Richard Fuchs
601abd2e5b
MT#61822 add list player cache
...
Change-Id: If40ab9218354b95ef2b4fba47cd5e38ab318a325
4 months ago
Richard Fuchs
e6172c34a2
MT#61822 add CLI cmd to add cached media
...
Change-Id: I749833d1548069444b36d1933a56080eebf9583d
4 months ago
Richard Fuchs
8286cc93b9
MT#61822 support reloading of FS cache
...
Change-Id: I028a9f8ffb6ff51f753744fc39d0a5c0b19a9e7b
4 months ago
Richard Fuchs
0fd3ac73a8
MT#61822 supporting removing entries from FS cache
...
Change-Id: Ie358778ce5d8d6872bc4964367cf0ec22296934f
4 months ago
Richard Fuchs
33be3468a7
MT#61822 support listing contents of FS cache
...
Change-Id: I31f9fe2bd0b95e832e285fa96ea969c703a816be
4 months ago
Richard Fuchs
a2ffa18d6c
MT#61822 add CLI command to list media cache
...
Change-Id: I41d388abefa1b356d7fecf7b1dc662d899a8f9ac
4 months ago
Richard Fuchs
33128b8c4a
MT#61822 add mechanism to remove cached media
...
Change-Id: I4be32b9b7cf122f09b891aff616c18f5ac883cd9
4 months ago
Richard Fuchs
e7c424d1ac
MT#61822 support preloading media from DB
...
Change-Id: Ieba8c9dd7ee413c64292a2fd48a16d38bade6be3
4 months ago
Richard Fuchs
77e8542229
MT#61822 add CLI command to reload media
...
Change-Id: I9c8c5423f1872169d9690282626abaad41c2597d
4 months ago
Richard Fuchs
ecfdb0921e
MT#61822 improve CLI keyword matching
...
Doing a simple prefix string match is not enough as there may be
keywords that are equal to a prefix of another keyword. Make sure the
keyword is followed by a space or newline or end of line. This also
removes the burden of having to skip over leading spaces in the CLI
handlers.
Change-Id: I118a08e1b33d9bf592d3d80101e4f0634401adbd
4 months ago
Richard Fuchs
3e7f17335d
MT#61822 streamline CLI config diff/revert
...
Replace the awkward unnecessary strcmp case distintion with some macro
invokations.
Change-Id: I0ecd2312e9586e3221770aaf5076d6b8ce4371b3
4 months ago
Richard Fuchs
13ca0bff5a
MT#61822 generalise CLI handlers
...
Remove redundant code and replace with a generic parser.
Change-Id: I0fd2946eaabad13b59bca245c7db9cd0c2730baf
4 months ago
Richard Fuchs
44d5810be2
MT#61822 streamline unneeded %s format
...
Change-Id: I85cab6f86545ecf63dbfa7b6aa77cb5d412e9bb5
4 months ago
Richard Fuchs
2ce79f9bb4
MT#61822 add type safety to obj_alloc
...
Make the macro return the appropriate pointer type, and make sure the
free function takes an argument of the same type. This also eliminates
some boilerplate type-casting code.
Change-Id: I3094271fa2c53ec93b9ff9f837d461cf422e0f12
4 months ago
Richard Fuchs
a99e162202
MT#61352 use "introspection" to manage config
...
Make it so that options only need to be managed in one place, and all
code operating on the list of them is streamlined
Change-Id: Ia53b15910ec8973635e61cad1b43eff8d536a577
6 months ago
Richard Fuchs
71b3298935
MT#61371 add aliases to CLI/log output
...
Change-Id: I11bf2dcb3bcf453a986d636706c095d88b4c16ff
6 months ago
Richard Fuchs
a6b28af6f8
MT#55283 modernise STR_INIT and str_init
...
Obsolete str_init(), rename STR_INIT() to just STR(), and replace all
instances of str_init() with STR().
no-op
Change-Id: I981529063ad2ea26089add467f7a84b638dbf423
9 months ago
Richard Fuchs
560ec9af27
MT#55283 update str_token*() to bool return type
...
Requires updating/reversing the conditional wherever it is used
Change-Id: I1d34a4a3a835662d0f5bb868756ddd21211d9738
11 months ago
Richard Fuchs
5e6d4cf6a3
MT#55283 update interface config queue to typed
...
Change-Id: I4fbd0385be7b63cc33516bd53fadde54b65e15b6
11 months ago
Richard Fuchs
96fa75d345
MT#55283 compile fix for 32-bit
...
Change-Id: I5b7b0983adcc589390c5e36a8b8850fad45b9c61
1 year ago
Richard Fuchs
216f4f12fd
MT#55283 eliminate `config_lock`
...
Use relaxed-order atomic ops to access config variables that can be set
during run time.
Rename config_lock to keyspaces_lock as the keyspaces list remains the
only object that it protects.
All other config variables aren't settable at runtime and so don't
require locks or atomic ops.
Change-Id: I7e01a34a4818a558d5648ae27a86f9880a95d050
1 year ago
Richard Fuchs
48b9206cee
MT#55283 fix bw_limit copy/pasto
...
This isn't a percentage nor a scaled value
Change-Id: Ib86a2a57bff3ae68edf94ea1a57dbd678b09a662
1 year ago
Richard Fuchs
7e90f4db2b
MT#55283 add last_packet time to stats
...
Change-Id: I040ca6f92ebf2d6847f570e6e6122b2d0fa4d3b0
1 year ago
Richard Fuchs
e20262489a
MT#55283 track time of last Redis update per call
...
Change-Id: I8c064abab2650679748416e40bd8debd40b4e7e8
1 year ago
Richard Fuchs
cdc8407a7c
MT#55283 use relaxed memory order for stats
...
No need for memory barriers here
Change-Id: I9ac6768bb1929be3aa982b0de73c95baa965bef7
1 year ago