-
Notifications
You must be signed in to change notification settings - Fork 50
Conversation
p.setValue(Status::OK()); | ||
} else { | ||
p.setValue(Status::Error("Access kv failed, code: %s", | ||
apache::thrift::util::enumNameSafe(code).c_str())); |
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.
sorry to say alignment.
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.
😂 my poor vscode, hold on
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.
great job,It's a difficult problem to identify.
@@ -43,8 +43,8 @@ void HBProcessor::process(const cpp2::HBReq& req) { | |||
} | |||
} | |||
|
|||
VLOG(3) << "Receive heartbeat from " << host | |||
<< ", role = " << apache::thrift::util::enumNameSafe(req.get_role()); | |||
LOG(INFO) << "Receive heartbeat from " << host |
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.
VLOG(1)?
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.
Previously was INFO, modified to VLOG(3) by others. It is the most convenient way to tell which is meta leader.
@@ -315,7 +315,7 @@ void FileBasedWal::closeCurrFile() { | |||
timebuf.modtime = currInfo_->mtime(); | |||
timebuf.actime = currInfo_->mtime(); | |||
VLOG(1) << "Close cur file " << currInfo_->path() << ", mtime: " << currInfo_->mtime(); | |||
CHECK_EQ(utime(currInfo_->path(), &timebuf), 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.
what's reason? no need to check the system error?
If future's callback is invoked before the future is set. And in the callback, baton will wait forever.