Skip to content

Commit a5f4b0f

Browse files
generatedunixname1983870519203396meta-codesync[bot]
authored andcommitted
ThriftFieldRefRemoveConstRef_eden_fs_service
Reviewed By: iahs Differential Revision: D96439361 fbshipit-source-id: 270c470f9cb28b2dbea4b6cd70701ef30463de73
1 parent 3af14fb commit a5f4b0f

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

eden/fs/service/EdenServiceHandler.cpp

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ EdenServiceHandler::semifuture_resetParentCommits(
10081008
void EdenServiceHandler::getCurrentSnapshotInfo(
10091009
GetCurrentSnapshotInfoResponse& out,
10101010
std::unique_ptr<GetCurrentSnapshotInfoRequest> params) {
1011-
const auto& mountId = params->mountId();
1011+
auto mountId = params->mountId();
10121012
auto helper = INSTRUMENT_THRIFT_CALL(DBG3, *mountId);
10131013
helper->getThriftFetchContext().fillClientRequestInfo(params->cri());
10141014

@@ -1327,7 +1327,7 @@ void EdenServiceHandler::getCurrentJournalPosition(
13271327
void EdenServiceHandler::peekCurrentJournalPosition(
13281328
PeekCurrentJournalPositionResponse& out,
13291329
std::unique_ptr<PeekCurrentJournalPositionRequest> params) {
1330-
const auto& mountId = params->mountId();
1330+
auto mountId = params->mountId();
13311331
auto helper = INSTRUMENT_THRIFT_CALL(DBG3, *mountId);
13321332
auto mountHandle = lookupMount(*mountId);
13331333
auto latest = mountHandle.getEdenMount().getJournal().peekLatest();
@@ -4084,7 +4084,7 @@ EdenServiceHandler::semifuture_predictiveGlobFiles(
40844084
: sandcastleAlias;
40854085

40864086
// check specified predictive parameters
4087-
const auto& predictiveGlob = params->predictiveGlob();
4087+
auto predictiveGlob = params->predictiveGlob();
40884088
if (predictiveGlob.has_value()) {
40894089
numResults = predictiveGlob->numTopDirectories().value_or(numResults);
40904090
user = predictiveGlob->user().has_value() ? predictiveGlob->user().value()
@@ -4902,9 +4902,9 @@ folly::coro::Task<std::unique_ptr<DebugGetScmBlobResponse>>
49024902
EdenServiceHandler::co_debugGetBlobImpl(
49034903
apache::thrift::Cpp2RequestContext* requestContext,
49044904
std::unique_ptr<DebugGetScmBlobRequest> request) {
4905-
const auto& mountid = request->mountId();
4906-
const auto& idStr = request->id();
4907-
const auto& origins = request->origins();
4905+
auto mountid = request->mountId();
4906+
auto idStr = request->id();
4907+
auto origins = request->origins();
49084908

49094909
auto helper = INSTRUMENT_THRIFT_CALL_WITH_CANCELLATION(
49104910
DBG2, true, requestContext, *mountid, logHash(*idStr), *origins);
@@ -5078,9 +5078,9 @@ EdenServiceHandler::co_cancelRequests(
50785078
folly::SemiFuture<std::unique_ptr<DebugGetScmBlobResponse>>
50795079
EdenServiceHandler::debugGetBlobImpl(
50805080
std::unique_ptr<DebugGetScmBlobRequest> request) {
5081-
const auto& mountid = request->mountId();
5082-
const auto& idStr = request->id();
5083-
const auto& origins = request->origins();
5081+
auto mountid = request->mountId();
5082+
auto idStr = request->id();
5083+
auto origins = request->origins();
50845084
auto helper =
50855085
INSTRUMENT_THRIFT_CALL(DBG2, *mountid, logHash(*idStr), *origins);
50865086

@@ -5148,9 +5148,9 @@ EdenServiceHandler::debugGetBlobImpl(
51485148
folly::SemiFuture<std::unique_ptr<DebugGetBlobMetadataResponse>>
51495149
EdenServiceHandler::semifuture_debugGetBlobMetadata(
51505150
std::unique_ptr<DebugGetBlobMetadataRequest> request) {
5151-
const auto& mountid = request->mountId();
5152-
const auto& idStr = request->id();
5153-
const auto& origins = request->origins();
5151+
auto mountid = request->mountId();
5152+
auto idStr = request->id();
5153+
auto origins = request->origins();
51545154
auto helper =
51555155
INSTRUMENT_THRIFT_CALL(DBG2, *mountid, logHash(*idStr), *origins);
51565156

@@ -5225,9 +5225,9 @@ EdenServiceHandler::semifuture_debugGetBlobMetadata(
52255225
folly::SemiFuture<std::unique_ptr<DebugGetScmTreeResponse>>
52265226
EdenServiceHandler::semifuture_debugGetTree(
52275227
std::unique_ptr<DebugGetScmTreeRequest> request) {
5228-
const auto& mountid = request->mountId();
5229-
const auto& idStr = request->id();
5230-
const auto& origins = request->origins();
5228+
auto mountid = request->mountId();
5229+
auto idStr = request->id();
5230+
auto origins = request->origins();
52315231
auto helper =
52325232
INSTRUMENT_THRIFT_CALL(DBG2, *mountid, logHash(*idStr), *origins);
52335233

0 commit comments

Comments
 (0)