diff options
| author | Stefan Boberg <[email protected]> | 2026-04-20 23:38:04 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2026-04-20 23:38:04 +0200 |
| commit | 56b485d7d291950a4edff1d25e8594dca891c0ce (patch) | |
| tree | af63ceafea1ac77a4a5d5a0b6e238d4cc76f3137 /src/zencore-test | |
| parent | Use eastl::deque for queues with many small elements (#991) (diff) | |
| download | archived-zen-sb/fix-batch-ptr.tar.xz archived-zen-sb/fix-batch-ptr.zip | |
structured cache: return unique_ptr from Create*Batch factoriessb/fix-batch-ptr
- ZenCacheNamespace::CreatePutBatch/CreateGetBatch now return
std::unique_ptr so ownership is explicit at the call site
- ZenCacheNamespace::PutBatchHandle/GetBatchHandle own their disk-layer
handle and clean it up in the destructor, so the public
DeletePutBatch/DeleteGetBatch entry points on ZenCacheNamespace are
removed
- ZenCacheStore::PutBatch/GetBatch store the handle as unique_ptr and
their destructors collapse to `= default`; the try/catch wrappers are
no longer needed since destruction is driven by the destructors of
types that do not throw
- Disk-layer public API (CreatePutBatch, DeletePutBatch, etc.) is
untouched because its inner batch-handle structs live in the .cpp and
exposing them to the header to satisfy std::unique_ptr's completeness
requirement would leak implementation details
Diffstat (limited to 'src/zencore-test')
0 files changed, 0 insertions, 0 deletions