未验证 提交 3f9f43eb 编写于 作者: 羽飞's avatar 羽飞 提交者: GitHub

Docker build error (#221)

### What problem were solved in this pull request?

Issue Number: ref #205 

Problem:
build failed on docker container

### What is changed and how it works?
fix compile error

### Other information
上级 cbfe0849
...@@ -85,7 +85,12 @@ Trx *MvccTrxKit::create_trx(int32_t trx_id) ...@@ -85,7 +85,12 @@ Trx *MvccTrxKit::create_trx(int32_t trx_id)
void MvccTrxKit::destroy_trx(Trx *trx) void MvccTrxKit::destroy_trx(Trx *trx)
{ {
lock_.lock(); lock_.lock();
erase(trxes_, trx); for (auto iter = trxes_.begin(), itend = trxes_.end(); iter != itend; ++iter) {
if (*iter == trx) {
trxes_.erase(iter);
break;
}
}
lock_.unlock(); lock_.unlock();
delete trx; delete trx;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册