Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit b8bf0bb

Browse files
authored
Merge pull request #1265 from zhaoguoquan94/lambda_unused_error
Fix build failed issue for apple's clang 9.1 due to unused-lambda-capture error
2 parents c4b06a1 + a4c221e commit b8bf0bb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/gc/transaction_level_gc_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ int TransactionLevelGCManager::Unlink(const int &thread_id,
139139
uint64_t timestamp = txn_ctx->GetTimestamp();
140140
auto &pool = threadpool::MonoQueuePool::GetBrainInstance();
141141
for(auto query_string: query_strings) {
142-
pool.SubmitTask([this, query_string, timestamp] {
142+
pool.SubmitTask([query_string, timestamp] {
143143
brain::QueryLogger::LogQuery(query_string, timestamp);
144144
});
145145
}

src/include/index/bwtree.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4587,7 +4587,7 @@ class BwTree : public BwTreeBase {
45874587

45884588
// This is not used since in this case we do not need to compare
45894589
// for equal relation
4590-
auto f2 = [this](const LeafDataNode *ldn1, const LeafDataNode *ldn2) {
4590+
auto f2 = [](const LeafDataNode *ldn1, const LeafDataNode *ldn2) {
45914591
(void)ldn1;
45924592
(void)ldn2;
45934593

src/traffic_cop/traffic_cop.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ executor::ExecutionResult TrafficCop::ExecuteHelper(
191191
};
192192

193193
auto &pool = threadpool::MonoQueuePool::GetInstance();
194-
pool.SubmitTask([plan, txn, &params, &result, &result_format, on_complete] {
194+
pool.SubmitTask([plan, txn, &params, &result_format, on_complete] {
195195
executor::PlanExecutor::ExecutePlan(plan, txn, params, result_format,
196196
on_complete);
197197
});

0 commit comments

Comments
 (0)