aboutsummaryrefslogtreecommitdiff
path: root/src/zentelemetry-test
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2026-04-20 23:38:04 +0200
committerStefan Boberg <[email protected]>2026-04-20 23:38:04 +0200
commit56b485d7d291950a4edff1d25e8594dca891c0ce (patch)
treeaf63ceafea1ac77a4a5d5a0b6e238d4cc76f3137 /src/zentelemetry-test
parentUse eastl::deque for queues with many small elements (#991) (diff)
downloadarchived-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/zentelemetry-test')
0 files changed, 0 insertions, 0 deletions