From 32ff24d231a6c07aa39ab0ae07f29a294de46a01 Mon Sep 17 00:00:00 2001
From: Roman Tsisyk <roman@tsisyk.com>
Date: Mon, 25 Jan 2016 19:08:08 +0300
Subject: [PATCH] Set value of too_long_threshold in box_init()

too_long_threshold was used uninitialized in txn_write_to_wal()
during box_init().
---
 src/box/box.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/box/box.cc b/src/box/box.cc
index 7b182c57c7..82ff9b8a3d 100644
--- a/src/box/box.cc
+++ b/src/box/box.cc
@@ -1034,6 +1034,7 @@ box_init(void)
 	recovery_setup_panic(recovery,
 			     cfg_geti("panic_on_snap_error"),
 			     cfg_geti("panic_on_wal_error"));
+	box_set_too_long_threshold();
 
 	/*
 	 * Initialize the cluster registry using replication_source,
-- 
GitLab