Fixed incorrect failed OP detection in ZooKeeper. [#CLICKHOUSE-2]

This commit is contained in:
Vitaliy Lyudvichenko 2018-05-03 16:34:19 +03:00
parent bdac9214a6
commit 63cc34d3f6
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -43,6 +43,7 @@ cmake-build-*
# Python cache # Python cache
*.pyc *.pyc
__pycache__ __pycache__
*.pytest_cache
# ignore generated files # ignore generated files
*-metrika-yandex *-metrika-yandex

View File

@ -775,7 +775,7 @@ size_t KeeperMultiException::getFailedOpIndex(int32_t code, const Responses & re
KeeperMultiException::KeeperMultiException(int32_t code, const Requests & requests, const Responses & responses) KeeperMultiException::KeeperMultiException(int32_t code, const Requests & requests, const Responses & responses)
: KeeperException("Transaction failed at op #" + std::to_string(getFailedOpIndex(code, responses)), code), : KeeperException("Transaction failed at op #" + std::to_string(getFailedOpIndex(code, responses)), code),
requests(requests), responses(responses) requests(requests), responses(responses), failed_op_index(getFailedOpIndex(code, responses))
{ {
} }