Skip to content

Commit 421473b

Browse files
committed
update license & fix gcc compile error
1 parent 5d7c392 commit 421473b

13 files changed

+16
-28
lines changed

src/storage/mutate/DeleteEdgesProcessor.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ void DeleteEdgesProcessor::process(const cpp2::DeleteEdgesRequest& req) {
8686
spaceId_,
8787
partId,
8888
std::move(para.result.value()),
89-
[partId, this](nebula::cpp2::ErrorCode code) { handleAsync(spaceId_, partId, code); });
89+
[partId, this](nebula::cpp2::ErrorCode rc) { handleAsync(spaceId_, partId, rc); });
9090
} else {
9191
doRemove(spaceId_, partId, std::move(keys));
9292
}

src/storage/test/ChainDeleteEdgesTest.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* Copyright (c) 2021 vesoft inc. All rights reserved.
22
*
3-
* This source code is licensed under Apache 2.0 License,
4-
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
3+
* This source code is licensed under Apache 2.0 License.
54
*/
65

76
#include <folly/Benchmark.h>

src/storage/transaction/ChainDeleteEdgesGroupProcessor.cpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* Copyright (c) 2021 vesoft inc. All rights reserved.
22
*
3-
* This source code is licensed under Apache 2.0 License,
4-
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
3+
* This source code is licensed under Apache 2.0 License.
54
*/
65

76
#include "storage/transaction/ChainDeleteEdgesGroupProcessor.h"
@@ -30,15 +29,15 @@ void ChainDeleteEdgesGroupProcessor::process(const cpp2::DeleteEdgesRequest& req
3029

3130
callingNum_ = splitedRequest.size();
3231

33-
auto fnSplit = [&](auto& req) {
32+
auto fnSplit = [&](auto& request) {
3433
auto* proc = ChainDeleteEdgesLocalProcessor::instance(env_);
3534
proc->getFuture().thenValue([=](auto&& resp) {
3635
auto code = resp.get_result().get_failed_parts().empty()
3736
? nebula::cpp2::ErrorCode::SUCCEEDED
3837
: resp.get_result().get_failed_parts().begin()->get_code();
3938
handleAsync(spaceId, localPartId, code);
4039
});
41-
proc->process(req.second);
40+
proc->process(request.second);
4241
};
4342

4443
std::for_each(splitedRequest.begin(), splitedRequest.end(), fnSplit);

src/storage/transaction/ChainDeleteEdgesGroupProcessor.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* Copyright (c) 2021 vesoft inc. All rights reserved.
22
*
3-
* This source code is licensed under Apache 2.0 License,
4-
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
3+
* This source code is licensed under Apache 2.0 License.
54
*/
65

76
#pragma once

src/storage/transaction/ChainDeleteEdgesLocalProcessor.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* Copyright (c) 2021 vesoft inc. All rights reserved.
22
*
3-
* This source code is licensed under Apache 2.0 License,
4-
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
3+
* This source code is licensed under Apache 2.0 License.
54
*/
65

76
#include "storage/transaction/ChainDeleteEdgesLocalProcessor.h"

src/storage/transaction/ChainDeleteEdgesLocalProcessor.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* Copyright (c) 2021 vesoft inc. All rights reserved.
22
*
3-
* This source code is licensed under Apache 2.0 License,
4-
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
3+
* This source code is licensed under Apache 2.0 License.
54
*/
65

76
#pragma once

src/storage/transaction/ChainDeleteEdgesRemoteProcessor.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* Copyright (c) 2021 vesoft inc. All rights reserved.
22
*
3-
* This source code is licensed under Apache 2.0 License,
4-
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
3+
* This source code is licensed under Apache 2.0 License.
54
*/
65

76
#include "storage/transaction/ChainDeleteEdgesRemoteProcessor.h"

src/storage/transaction/ChainDeleteEdgesRemoteProcessor.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* Copyright (c) 2021 vesoft inc. All rights reserved.
22
*
3-
* This source code is licensed under Apache 2.0 License,
4-
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
3+
* This source code is licensed under Apache 2.0 License.
54
*/
65

76
#pragma once

src/storage/transaction/ChainDeleteEdgesResumeProcessor.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* Copyright (c) 2021 vesoft inc. All rights reserved.
22
*
3-
* This source code is licensed under Apache 2.0 License,
4-
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
3+
* This source code is licensed under Apache 2.0 License.
54
*/
65

76
#include "storage/transaction/ChainDeleteEdgesResumeProcessor.h"

src/storage/transaction/ChainDeleteEdgesResumeProcessor.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* Copyright (c) 2021 vesoft inc. All rights reserved.
22
*
3-
* This source code is licensed under Apache 2.0 License,
4-
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
3+
* This source code is licensed under Apache 2.0 License.
54
*/
65

76
#pragma once

src/storage/transaction/ChainDeleteEdgesResumeRemoteProcessor.cpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* Copyright (c) 2021 vesoft inc. All rights reserved.
22
*
3-
* This source code is licensed under Apache 2.0 License,
4-
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
3+
* This source code is licensed under Apache 2.0 License.
54
*/
65

76
#include "storage/transaction/ChainDeleteEdgesResumeRemoteProcessor.h"
@@ -52,8 +51,8 @@ folly::SemiFuture<Code> ChainDeleteEdgesResumeRemoteProcessor::processLocal(Code
5251

5352
folly::Baton<true, std::atomic> baton;
5453
env_->kvstore_->asyncMultiRemove(
55-
spaceId_, localPartId_, std::move(doublePrimeKeys), [this](auto&& code) {
56-
this->code_ = code;
54+
spaceId_, localPartId_, std::move(doublePrimeKeys), [this](auto&& rc) {
55+
this->code_ = rc;
5756
});
5857
baton.wait();
5958
}

src/storage/transaction/ChainDeleteEdgesResumeRemoteProcessor.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* Copyright (c) 2021 vesoft inc. All rights reserved.
22
*
3-
* This source code is licensed under Apache 2.0 License,
4-
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
3+
* This source code is licensed under Apache 2.0 License.
54
*/
65

76
#pragma once

src/storage/transaction/ConsistTypes.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* Copyright (c) 2021 vesoft inc. All rights reserved.
22
*
33
* This source code is licensed under Apache 2.0 License,
4-
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
54
*/
65

76
#pragma once

0 commit comments

Comments
 (0)