From e2eff0b24d57bf1ca5d3eabf7f24805613ecf101 Mon Sep 17 00:00:00 2001
From: Konstantin Osipov <kostja@tarantool.org>
Date: Sun, 9 Jul 2017 11:48:57 +0300
Subject: [PATCH] vinyl: add a comment to vy_cursor_delete()

---
 src/box/vinyl.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/box/vinyl.c b/src/box/vinyl.c
index c3a2ecec1d..fd967ce38b 100644
--- a/src/box/vinyl.c
+++ b/src/box/vinyl.c
@@ -8780,7 +8780,12 @@ vy_cursor_delete(struct vy_cursor *c)
 	struct vy_env *e = c->env;
 	if (c->tx != NULL) {
 		if (c->tx == &c->tx_autocommit) {
-			/* Rollback the automatic transaction. */
+			/*
+			 * Rollback the automatic transaction,
+			 * use vy_tx_destroy() to not spoil
+			 * the statistics of rollbacks issued
+			 * by user transactions.
+			 */
 			vy_tx_destroy(c->tx);
 		} else {
 			/*
-- 
GitLab