mirror of
https://github.com/Zygo/bees.git
synced 2025-05-18 05:45: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>
This commit is contained in:
parent
8a932a632f
commit
f56f736d28
@ -930,6 +930,7 @@ BeesBlockData::data() const
|
|||||||
{
|
{
|
||||||
if (m_data.empty()) {
|
if (m_data.empty()) {
|
||||||
THROW_CHECK1(invalid_argument, size(), size() > 0);
|
THROW_CHECK1(invalid_argument, size(), size() > 0);
|
||||||
|
BEESNOTE("Reading BeesBlockData " << *this);
|
||||||
BEESTOOLONG("Reading BeesBlockData " << *this);
|
BEESTOOLONG("Reading BeesBlockData " << *this);
|
||||||
Timer read_timer;
|
Timer read_timer;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user