diff options
| author | Stefan Boberg <[email protected]> | 2026-04-21 10:07:03 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2026-04-21 10:07:03 +0200 |
| commit | 2ade130ec3c163cadc4a296e7d7800eb86e72056 (patch) | |
| tree | 7f3332551322ee2e206ee5ae9f9d30b80d45b204 /src/zenserver/frontend/html/util/compactbinary.js | |
| parent | Zen CLI common server interface (#920) (diff) | |
| download | zen-2ade130ec3c163cadc4a296e7d7800eb86e72056.tar.xz zen-2ade130ec3c163cadc4a296e7d7800eb86e72056.zip | |
structured cache: fix some minor issues (#995)
- Fix double WriteResponse in PUT record failure path; the detail-body branch now short-circuits instead of falling through to a second WriteResponse call
- Return 405 Method Not Allowed for unsupported verbs in the root, namespace, bucket, record, and chunk handlers (previously fell through to no response)
- Clamp exec$/replay-recording thread_count so a bogus query value cannot spawn an unbounded worker pool
## Performance / cleanup
- NamespaceMap now uses TransparentStringHash + std::equal_to<>, so Get/Put/Find/Drop can probe the map with a std::string_view directly instead of constructing a temporary std::string on every request
- Replace insert_or_assign with try_emplace under the exclusive lock in GetNamespace; the find() re-check already guarantees the key is absent, so try_emplace matches intent better
## Reverted
- The earlier change to erase the pinned entry from m_DroppedNamespaces after DropNamespace's post-drop work was reverted: other threads may still hold pointers into a dropped namespace, so tearing it down eagerly is unsafe. Dropped namespaces remain pinned for the lifetime of the process as before.
Diffstat (limited to 'src/zenserver/frontend/html/util/compactbinary.js')
0 files changed, 0 insertions, 0 deletions