From 8b508b09c6b3f22de6cfc92f99bd39d8426165de Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Sun, 11 Feb 2018 16:14:42 +0000 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20use=20non-default=20isolation?= =?UTF-8?q?=20level=20for=20mysql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kvs/mysql/db.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kvs/mysql/db.go b/kvs/mysql/db.go index f09f37f5..d71e53fb 100644 --- a/kvs/mysql/db.go +++ b/kvs/mysql/db.go @@ -51,7 +51,6 @@ func (db *DB) Close() (err error) { func (db *DB) opt(writable bool) *sql.TxOptions { return &sql.TxOptions{ - ReadOnly: !writable, - Isolation: sql.LevelReadCommitted, + ReadOnly: !writable, } }