-
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 error for checkpoint when space doesn't exist in storageNode. #2287
fix error for checkpoint when space doesn't exist in storageNode. #2287
Conversation
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::unique_ptr<kvstore::KVIterator> iter; | ||
auto kvRet = kv_->prefix(kDefaultSpaceId, kDefaultPartId, prefix, &iter); | ||
if (kvRet != kvstore::ResultCode::SUCCEEDED) { | ||
return {}; |
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.
maybe it is an error ?
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.
em... What's the difference between '{}' and 'empty list'?
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.
maybe it is an error ?
I see what you mean. let me fix it.
Please hold this PR. |
Any concerns? |
By @darionyaphet's comment . An invalid checkpoint will be created when kv_->prefix error occur. |
617fb24
Addressed darionyaphet's comment. |
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
…soft-inc#2287) * fix error for checkpoint * fix error for checkpoint * Addressed darionyaphet's comment Co-authored-by: dangleptr <37216992+dangleptr@users.noreply.github.com>
…soft-inc#2287) * fix error for checkpoint * fix error for checkpoint * Addressed darionyaphet's comment Co-authored-by: dangleptr <37216992+dangleptr@users.noreply.github.com>
No description provided.