mirror of
https://github.com/ceph/ceph
synced 2024-12-17 00:46:05 +00:00
MemoryModel: init in ctor
CID 717211: Uninitialized scalar field (UNINIT_CTOR) At (18): Non-static class member field "last.mmap" is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
8d4e6e2a4c
commit
bdadc4eca6
@ -29,6 +29,10 @@ public:
|
||||
|
||||
int heap, malloc, mmap;
|
||||
|
||||
snap() : peak(0), size(0), hwm(0), rss(0), data(0), lib(0),
|
||||
heap(0), malloc(0), mmap(0)
|
||||
{}
|
||||
|
||||
int get_total() { return size; }
|
||||
int get_rss() { return rss; }
|
||||
int get_heap() { return heap; }
|
||||
|
Loading…
Reference in New Issue
Block a user