ywkaras commented on code in PR #11214:
URL: https://github.com/apache/trafficserver/pull/11214#discussion_r1558002511
##########
include/tsutil/Metrics.h:
##########
@@ -276,13 +287,62 @@ class Metrics
return _makeId(std::get<0>(id), std::get<1>(id));
}
- void _addBlob();
+ class Storage
+ {
+ BlobStorage _blobs;
+ uint16_t _cur_blob = 0;
+ uint16_t _cur_off = 0;
+ LookupTable _lookups;
+ mutable std::mutex _mutex;
+
+ public:
+ Storage(const self_type &) = delete;
+ Storage &operator=(const Storage &) = delete;
+ Storage &operator=(Storage &&) = delete;
+ Storage(Storage &&) = delete;
Review Comment:
If you delete copy construct/assign, you don't need to delete move
copy/assign: https://godbolt.org/z/Kcfadn7PT
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]