Changli Gao
8e68ffb872
Fix deadlock when calling getMergedHistogram
...
Summary:
When calling StatisticsImpl::HistogramInfo::getMergedHistogram(), if
there is a dying thread, which is calling
ThreadLocalPtr::StaticMeta::OnThreadExit() to merge its thread values to
HistogramInfo, deadlock will occur. Because the former try to hold
merge_lock then ThreadMeta::mutex_, but the later try to hold
ThreadMeta::mutex_ then merge_lock. In short, the locking order isn't
the same.
This patch addressed this issue by releasing merge_lock before folding
thread values.
Closes https://github.com/facebook/rocksdb/pull/1552
Differential Revision: D4211942
Pulled By: ajkr
fbshipit-source-id: ef89bcb
2016-12-09 12:59:51 -08:00
..
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-08-10 13:52:23 -07:00
2016-02-09 15:12:00 -08:00
2016-05-20 07:42:18 -07:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-08-19 12:28:19 -07:00
2016-08-29 10:40:00 -07:00
2016-10-07 17:21:45 -07:00
2016-10-07 17:21:45 -07:00
2016-02-09 15:12:00 -08:00
2016-08-31 08:56:34 -07:00
2016-08-19 12:28:19 -07:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-08-19 15:10:31 -07:00
2016-08-16 08:21:43 -07:00
2016-04-25 23:02:14 -07:00
2016-09-06 12:22:16 -07:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-10-14 12:25:39 -07:00
2016-10-14 12:25:39 -07:00
2016-10-18 16:59:37 -07:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-07-08 17:50:51 -07:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-08-19 15:10:31 -07:00
2016-09-13 12:08:22 -07:00
2016-05-06 17:42:50 -07:00
2016-09-07 12:37:45 -07:00
2016-09-13 12:08:22 -07:00
2016-09-16 17:45:12 -07:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-05-10 14:06:07 -07:00
2016-05-10 14:06:07 -07:00
2016-02-09 15:12:00 -08:00
2016-08-05 10:31:41 -07:00
2016-08-05 10:31:41 -07:00
2016-09-23 16:34:04 -07:00
2016-09-23 16:34:04 -07:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-11-28 18:20:38 -08:00
2016-07-15 10:41:36 -07:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-03-11 22:56:25 -08:00
2016-03-17 14:28:41 -07:00
2016-03-11 16:54:25 -08:00
2016-03-15 11:38:15 -07:00
2016-03-11 16:54:25 -08:00
2016-09-01 19:57:55 -07:00
2016-02-09 15:12:00 -08:00
2016-09-13 12:08:22 -07:00
2016-09-13 12:08:22 -07:00
2016-02-09 15:12:00 -08:00
2016-02-23 10:26:24 -08:00
2016-02-23 10:26:24 -08:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-10-11 16:45:51 -07:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-08-19 16:43:31 -07:00
2016-08-23 13:53:49 -07:00
2016-08-23 13:44:13 -07:00
2016-05-27 12:10:26 -07:00
2016-06-03 15:13:03 -07:00
2016-05-27 12:10:26 -07:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-07-19 12:01:46 -07:00
2016-10-14 13:09:18 -07:00
2016-10-14 13:09:18 -07:00
2016-10-14 13:09:18 -07:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-10-07 17:21:45 -07:00
2016-11-28 17:11:29 -08:00
2016-10-07 17:21:45 -07:00
2016-02-17 20:22:40 +08:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-06-01 09:07:09 -07:00
2016-02-09 15:12:00 -08:00
2016-07-07 11:35:40 -07:00
2016-02-09 15:12:00 -08:00
2016-03-16 22:57:57 +01:00
2016-10-13 14:26:12 -07:00
2016-07-01 00:16:29 -07:00
2016-05-27 16:15:28 -07:00
2016-09-01 13:50:39 -07:00
2016-09-01 13:50:39 -07:00
2016-02-09 15:12:00 -08:00
2016-06-10 16:37:36 -07:00
2016-02-18 11:25:19 -08:00
2016-02-17 15:20:23 -08:00
2016-07-25 16:05:50 -07:00
2016-12-09 12:59:51 -08:00
2016-10-11 10:54:11 -07:00
2016-09-07 12:37:45 -07:00
2016-09-07 12:37:45 -07:00
2016-04-01 11:06:06 -07:00
2016-08-02 14:53:29 -07:00
2016-02-09 15:12:00 -08:00
2016-06-29 07:35:17 -07:00
2016-08-16 06:19:46 -07:00
2016-07-07 11:29:14 -07:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-10-07 17:21:45 -07:00
2016-10-18 16:59:37 -07:00
2016-02-09 15:12:00 -08:00
2016-08-23 13:34:56 -07:00
2016-08-22 15:37:39 -07:00
2016-08-22 15:37:39 -07:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-03-04 16:03:31 -08:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-09-02 17:10:28 -07:00
2016-08-26 10:41:35 -07:00
2016-03-11 15:16:52 -08:00
2016-03-15 10:57:33 -07:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2015-11-18 16:23:19 -08:00
2015-03-12 12:07:10 -07:00