-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix storage hang on terminate #3014
Fix storage hang on terminate #3014
Conversation
90d02b3
to
aa76a96
Compare
aa76a96
to
ee0517a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
general looks good to me, plz note some code style
f05e215
to
a7327e5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Close #3005 |
15465a8
to
1d10dcd
Compare
Codecov Report
@@ Coverage Diff @@
## master #3014 +/- ##
==========================================
+ Coverage 84.34% 84.36% +0.01%
==========================================
Files 1283 1283
Lines 113684 113699 +15
==========================================
+ Hits 95891 95923 +32
+ Misses 17793 17776 -17
Continue to review full report at Codecov.
|
1d10dcd
to
00d53f3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
std::vector<std::string> keys; | ||
std::vector<futTuple> futVec; | ||
for (; iter->valid(); iter->next()) { | ||
folly::StringPiece key = iter->key(); | ||
int32_t seqId = *reinterpret_cast<const int32_t*>(key.data()); | ||
if (seqId < 0) continue; | ||
if (seqId < 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the key is consists of several items. would check it cast to integer?
@@ -33,6 +33,7 @@ include_directories(AFTER ${CMAKE_CURRENT_BINARY_DIR}/src) | |||
|
|||
if(ENABLE_WERROR) | |||
add_compile_options(-Werror) | |||
add_compile_options(-Wno-attributes) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why support this compile flag? which problem dose it solved?
* add -Wno-attribute, to avoid gcc's bug * break loop in unreportedAdminThread_ if the sever being stopped
No description provided.