Isaac Connor
b18ac74d9e
fix: let zms stream the event a monitor is currently recording
...
loadInitialEventData() selected on unix_timestamp(`EndDateTime`) > t. An event
still being written has no EndDateTime, unix_timestamp(NULL) is NULL, and
NULL > t is never true, so the event currently recording could never be found.
zms.cpp:374 prefers the monitor_id form of setStreamStart whenever both
monitor and time are given, which is what montage review always sends, so its
`event` parameter never got a chance to help. Reviewing the present moment
returned the no-image placeholder, and every such request logged at ERR and
inserted a row into Logs.
Falls back to StartDateTime + Length, which zmc flushes every few seconds. An
event with neither ends where it starts, so a crash-orphaned event cannot match
every query and be picked ahead of the real one by the ORDER BY. Same
expression the API's Event model uses for EndTimeSecs.
Finding no event for a time is also no longer ERR. A client may ask for a time
the monitor was not recording, and it does so once per request.
Verified against a live instance: for a montage review request into the
recording event, the installed zms returned 2935 bytes (the placeholder) and
logged the failure, the rebuilt one returned a 134949 byte frame and logged
nothing.
2026-08-10 20:54:22 -04:00
..
2024-03-26 13:43:58 -05:00
2026-06-27 11:27:47 -04:00
2013-03-17 00:45:21 +01:00
2026-02-04 20:44:17 -05:00
2024-10-26 14:29:40 -04:00
2024-03-26 13:43:58 -05:00
2024-03-26 13:43:58 -05:00
2026-02-02 20:34:33 -05:00
2026-06-02 21:39:16 -04:00
2026-05-03 12:24:43 -04:00
2026-02-03 10:18:49 -05:00
2026-02-02 20:44:01 -05:00
2026-02-23 18:19:20 -05:00
2026-06-27 12:13:49 -04:00
2026-06-14 13:20:00 +10:00
2024-03-26 13:43:58 -05:00
2024-03-26 13:43:58 -05:00
2021-06-06 19:11:11 +02:00
2021-05-30 22:56:21 +02:00
2021-05-30 22:56:21 +02:00
2026-07-21 18:01:05 -04:00
2026-07-21 18:01:05 -04:00
2026-05-14 07:38:58 -04:00
2024-10-26 14:29:40 -04:00
2021-05-16 16:42:58 +02:00
2026-07-21 18:01:05 -04:00
2026-07-21 18:01:05 -04:00
2026-07-21 18:01:05 -04:00
2026-02-12 23:00:59 -05:00
2026-08-10 20:54:22 -04:00
2026-06-18 17:45:12 -04:00
2024-03-26 13:43:58 -05:00
2024-03-26 13:43:58 -05:00
2026-08-08 11:56:43 -04:00
2026-07-01 10:08:58 -04:00
2026-07-19 11:26:03 -04:00
2025-09-22 09:52:25 -04:00
2026-02-03 11:03:17 -05:00
2024-03-26 13:43:58 -05:00
2026-08-05 17:44:37 -04:00
2026-08-05 17:44:37 -04:00
2024-03-26 13:43:58 -05:00
2024-03-26 13:43:58 -05:00
2026-02-03 11:36:53 -05:00
2024-03-26 13:43:58 -05:00
2026-02-02 23:24:08 -05:00
2024-03-26 13:43:58 -05:00
2024-03-26 13:43:58 -05:00
2024-03-26 13:43:58 -05:00
2024-03-26 13:43:58 -05:00
2021-05-30 21:41:58 +02:00
2024-03-26 13:43:58 -05:00
2024-03-26 13:43:58 -05:00
2026-03-09 15:07:14 -04:00
2026-03-09 15:07:14 -04:00
2026-02-03 11:42:14 -05:00
2024-03-26 13:43:58 -05:00
2024-03-26 13:43:58 -05:00
2024-03-26 13:43:58 -05:00
2026-08-06 21:26:05 -04:00
2026-05-03 12:24:43 -04:00
2025-07-19 14:18:32 -04:00
2025-07-19 14:18:32 -04:00
2026-08-08 11:56:43 -04:00
2026-06-18 07:54:15 +10:00
2026-06-18 07:54:15 +10:00
2024-03-26 13:43:58 -05:00
2021-05-16 19:41:45 +02:00
2026-08-05 17:44:37 -04:00
2026-01-29 18:50:42 -05:00
2026-02-23 18:19:20 -05:00
2026-02-23 18:19:20 -05:00
2024-03-26 13:43:58 -05:00
2026-03-05 02:13:59 +00:00
2026-07-02 15:57:51 -04:00
2026-03-05 02:13:59 +00:00
2026-06-01 16:31:25 -04:00
2026-06-14 09:15:01 -05:00
2026-02-09 11:34:44 -05:00
2026-03-09 15:07:14 -04:00
2026-03-09 15:07:14 -04:00
2026-03-05 02:13:59 +00:00
2026-08-05 17:44:37 -04:00
2026-08-07 08:27:15 -04:00
2024-03-26 13:43:58 -05:00
2024-03-26 13:43:58 -05:00
2024-03-26 13:43:58 -05:00
2026-07-26 09:48:44 -04:00
2026-06-18 08:21:29 +10:00
2026-05-26 23:03:33 -04:00
2026-03-05 02:15:08 +00:00
2026-02-02 20:53:00 -05:00
2024-10-29 13:30:29 -04:00
2026-06-13 09:35:40 -04:00
2026-02-15 15:38:07 -05:00
2026-06-01 11:54:32 -04:00
2026-06-01 11:54:32 -04:00
2026-06-06 11:49:30 -04:00
2026-02-03 12:13:29 -05:00
2022-01-06 16:45:15 -06:00
2024-03-26 13:43:58 -05:00
2024-03-26 13:43:58 -05:00
2025-02-26 21:04:32 +11:00
2025-02-26 21:04:32 +11:00
2026-07-26 20:30:42 -04:00
2024-03-26 13:43:58 -05:00
2024-03-26 13:43:58 -05:00
2024-03-26 13:43:58 -05:00
2026-05-31 09:22:09 -04:00
2024-03-26 13:43:58 -05:00
2026-02-03 12:25:21 -05:00
2024-03-26 13:43:58 -05:00
2026-05-03 12:24:43 -04:00
2026-02-03 12:34:21 -05:00
2024-03-26 13:43:58 -05:00
2026-02-03 12:45:56 -05:00
2024-03-26 13:43:58 -05:00
2026-02-03 12:47:14 -05:00
2024-03-26 13:43:58 -05:00
2024-03-26 13:43:58 -05:00
2024-03-26 13:43:58 -05:00
2024-03-26 13:43:58 -05:00
2024-03-26 13:43:58 -05:00
2024-03-26 13:43:58 -05:00
2024-03-26 13:43:58 -05:00
2026-01-09 11:43:15 -05:00
2026-01-05 13:36:16 +00:00
2024-03-26 13:43:58 -05:00
2024-03-26 13:43:58 -05:00
2024-03-26 13:43:58 -05:00
2024-03-26 13:43:58 -05:00
2026-01-31 12:43:03 -05:00
2026-01-31 16:19:38 -05:00
2026-01-31 16:19:38 -05:00
2026-01-30 15:30:40 -05:00
2024-03-26 13:43:58 -05:00
2026-06-14 19:11:51 -04:00
2026-01-30 14:49:53 -05:00
2024-03-26 13:43:58 -05:00
2026-01-31 12:43:03 -05:00
2024-03-26 13:43:58 -05:00
2024-03-26 13:43:58 -05:00
2024-03-26 13:43:58 -05:00
2024-03-26 13:43:58 -05:00
2024-03-26 13:43:58 -05:00
2026-06-11 08:47:13 -04:00
2026-02-03 12:28:30 -05:00
2024-03-26 13:43:58 -05:00
2026-07-26 22:45:00 -04:00
2024-03-26 13:43:58 -05:00
2023-01-18 16:01:42 -05:00
2024-03-26 13:43:58 -05:00
2024-03-26 13:43:58 -05:00
2026-06-14 19:11:51 -04:00
2026-06-14 19:11:51 -04:00
2026-02-03 12:30:06 -05:00
2024-03-26 13:43:58 -05:00
2026-08-03 08:32:01 -04:00
2026-08-03 08:03:13 -04:00
2026-08-05 17:44:37 -04:00
2026-06-13 10:19:09 +10:00
2025-07-05 08:09:09 -04:00
2025-07-05 08:09:09 -04:00
2026-06-03 08:42:10 -04:00
2026-02-12 16:53:39 -05:00
2024-03-26 13:43:58 -05:00
2024-03-26 13:43:58 -05:00
2026-05-04 14:53:38 +00:00
2026-03-09 15:07:14 -04:00
2026-07-26 09:48:44 -04:00
2026-08-08 11:56:43 -04:00
2024-03-26 13:43:58 -05:00
2026-06-27 12:13:49 -04:00
2026-06-19 09:52:36 -04:00
2026-02-07 22:52:15 -05:00
2026-06-26 16:10:07 -04:00
2026-02-12 18:06:56 -05:00
2026-01-05 16:36:36 -05:00
2026-01-05 16:36:36 -05:00
2026-07-21 18:01:05 -04:00
2024-03-26 13:43:58 -05:00
2026-04-10 08:40:26 -04:00
2026-08-06 21:43:36 -04:00
2025-12-31 22:29:37 +11:00