yiguolei commented on code in PR #8855:
URL: https://github.com/apache/incubator-doris/pull/8855#discussion_r849357830
##########
be/src/common/status.cpp:
##########
@@ -4,10 +4,35 @@
#include "common/status.h"
-#include "gutil/strings/fastmem.h" // for memcpy_inlined
+#include <boost/stacktrace.hpp>
+#include <glog/logging.h>
+#include "gutil/strings/fastmem.h" // for memcpy_inlined
namespace doris {
+constexpr int MAX_ERROR_NUM = 65536;
+struct ErrorCodeState {
+ int16_t error_code = 0;
+ bool stacktrace = true;
+ std::string description;
+ size_t count = 0; // Used for count the number of error happens
+ std::mutex mutex; // lock guard for count state
Review Comment:
This filed is not used yet. Just add a filed and used in the future and I
could remove it.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]