[Tarantool-patches] [PATCH 2/3] box/txn: log error explicitly in txn_commit
Cyrill Gorcunov
gorcunov at gmail.com
Thu Feb 27 17:16:27 MSK 2020
To be on same way as we do in txn_write_to_wal.
Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
src/box/txn.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/box/txn.c b/src/box/txn.c
index cac97d1eb..9e2888c09 100644
--- a/src/box/txn.c
+++ b/src/box/txn.c
@@ -604,8 +604,10 @@ txn_commit(struct txn *txn)
fiber_set_cancellable(cancellable);
}
int res = txn->signature >= 0 ? 0 : -1;
- if (res != 0)
+ if (res != 0) {
diag_set(ClientError, ER_WAL_IO);
+ diag_log();
+ }
/* Synchronous transactions are freed by the calling fiber. */
txn_free(txn);
--
2.20.1
More information about the Tarantool-patches
mailing list