Skip to content

Commit aa7b07d

Browse files
committed
fix 2
Signed-off-by: Hanqing Wu <[email protected]>
1 parent c105e72 commit aa7b07d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/client/chunk_closure.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ FailureRequestOption ClientClosure::failReqOpt_;
4343

4444
void ClientClosure::PreProcessBeforeRetry(int rpcstatus, int cntlstatus) {
4545
// 中文注释
46-
RequestClosure *reqDone = static_cast<RequestClosure*>(done_);
46+
RequestClosure *reqDone = static_cast<RequestClosure *>(done_);
4747

4848
// 如果对应的cooysetId leader可能发生变更
4949
// 那么设置这次重试请求超时时间为默认值
@@ -72,6 +72,7 @@ void ClientClosure::PreProcessBeforeRetry(int rpcstatus, int cntlstatus) {
7272
}
7373

7474
reqDone->SetNextTimeOutMS(nextTimeout);
75+
7576
LOG(WARNING) << "rpc timeout, next timeout = " << nextTimeout
7677
<< ", " << *reqCtx_
7778
<< ", retried times = " << reqDone->GetRetriedTimes()

src/client/metacache.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ using curve::common::WriteLockGuard;
4141
using curve::common::ReadLockGuard;
4242
using curve::client::ClientConfig;
4343

44-
void MetaCache::Init(const MetaCacheOption& metaCacheOpt,
44+
void MetaCache::Init(const MetaCacheOption &metaCacheOpt,
4545
MDSClient *mdsclient) {
4646
mdsclient_ = mdsclient;
4747
metacacheopt_ = metaCacheOpt;

0 commit comments

Comments
 (0)