mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 21:35:45 +02:00
bees: make a thread note when we read data
Reads can block indefinitely due to bugs, low io priority, or poor storage performance. Record the block origin data in the thread state so we can see which reads are problematic. Signed-off-by: Zygo Blaxell <bees@furryterror.org> (cherry picked from commit f56f736d28970a0f03ee887a5bd5515cc749d413)
This commit is contained in:
parent
e0951ed4ba
commit
8cde833863
@ -930,6 +930,7 @@ BeesBlockData::data() const
|
||||
{
|
||||
if (m_data.empty()) {
|
||||
THROW_CHECK1(invalid_argument, size(), size() > 0);
|
||||
BEESNOTE("Reading BeesBlockData " << *this);
|
||||
BEESTOOLONG("Reading BeesBlockData " << *this);
|
||||
Timer read_timer;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user