[Tarantool-patches] [PATCH v2 07/10] txn: fix say_x format
Cyrill Gorcunov
gorcunov at gmail.com
Wed Feb 24 18:36:23 MSK 2021
Use explicit conversion for 64 bit number.
Part-of #5846
Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
src/box/txn.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/box/txn.c b/src/box/txn.c
index a5edbfc60..c9c0579b8 100644
--- a/src/box/txn.c
+++ b/src/box/txn.c
@@ -585,7 +585,8 @@ txn_on_journal_write(struct journal_entry *entry)
int n_rows = txn->n_new_rows + txn->n_applier_rows;
say_warn_ratelimited("too long WAL write: %d rows at LSN %lld: "
"%.3f sec", n_rows,
- txn->signature - n_rows + 1, delta);
+ (long long)(txn->signature - n_rows + 1),
+ delta);
}
if (txn_has_flag(txn, TXN_HAS_TRIGGERS))
txn_run_wal_write_triggers(txn);
--
2.29.2
More information about the Tarantool-patches
mailing list