Alexey Serbin has uploaded this change for review. (
http://gerrit.cloudera.org:8080/20206
Change subject: [minidump] a minor cleanup on the minidump code
......................................................................
[minidump] a minor cleanup on the minidump code
I looked through the code of the minidump wrapper in the context of
KUDU-3491 and cleaned up the related sections a bit:
* explicitly initialize the 'user_signal_handler_thread_running_' field
* changed the signature of the minidump_dir() method to return
'const std::string' and perform an extra sanity check (debug-only)
* changed the type from 'int' to 'size_t' and explicitly initialize
the 'current_num_instances_' static member: that's not necessary per
the C++ standard (at least C++17), but might help to work around
possible compiler bugs
* other minor updates: code style, etc.
Change-Id: I33b0c528975bf50a6fe16b9c2f76eeb685e5dd35
---
M src/kudu/util/minidump.cc
M src/kudu/util/minidump.h
2 files changed, 31 insertions(+), 20 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/06/20206/1
--
To view, visit http://gerrit.cloudera.org:8080/20206
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I33b0c528975bf50a6fe16b9c2f76eeb685e5dd35
Gerrit-Change-Number: 20206
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <[email protected]>