Gyu-Ho Lee 26abd25cd3 mvcc/backend: hold 'readTx.Lock' until completing bolt.Tx reset
Fix https://github.com/coreos/etcd/issues/7526.

When resetting `bolt.Tx` in `defrag` and `batchTxBuffered.commit`
operation, we do not hold `readTx` lock, so the inflight range
requests can trigger panic in `mvcc.Range` paths. This fixes by
moving mutexes out and hold it while resetting the `readTx`.

Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-03-23 09:47:43 -07:00
..
2016-11-10 12:02:00 -08:00
2016-05-12 20:50:33 -07:00
2016-11-18 23:04:39 +05:30
2016-05-20 22:31:22 -07:00
2017-03-08 20:52:59 -08:00
2017-03-08 20:52:59 -08:00
2017-03-08 20:52:59 -08:00
2017-03-08 20:52:59 -08:00
2016-05-20 22:31:22 -07:00
2017-03-08 20:52:59 -08:00
2017-03-08 20:52:59 -08:00
2017-03-08 20:52:59 -08:00
2017-03-08 20:52:59 -08:00
2016-06-19 23:00:39 -07:00
2016-05-12 20:50:33 -07:00
2016-05-12 20:50:33 -07:00
2016-05-20 22:31:22 -07:00
2017-03-08 20:52:59 -08:00