summaryrefslogtreecommitdiffstats
path: root/src/os/bluestore/BlueFS.cc
diff options
context:
space:
mode:
authorsajibreadd <sajibreadd@gmail.com>2024-05-27 09:30:06 +0200
committersajibreadd <sajibreadd@gmail.com>2024-06-26 10:47:03 +0200
commit73b80a9a2c38259346fb646f85fa2ba4dcbb1329 (patch)
tree589c9f9aefc75b54f77226c2643f42432d7d14d0 /src/os/bluestore/BlueFS.cc
parentMerge pull request #57729 from idryomov/wip-66232 (diff)
downloadceph-73b80a9a2c38259346fb646f85fa2ba4dcbb1329.tar.xz
ceph-73b80a9a2c38259346fb646f85fa2ba4dcbb1329.zip
Warning added for slow operations and stalled read in BlueStore. User can control how much time the warning should persist after last occurence and maximum number of operations as a threshold will be considered for the warning.
Fixes: https://tracker.ceph.com/issues/62500 Signed-off-by: Md Mahamudur Rahaman Sajib <mahamudur.sajib@croit.io>
Diffstat (limited to 'src/os/bluestore/BlueFS.cc')
-rw-r--r--src/os/bluestore/BlueFS.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/os/bluestore/BlueFS.cc b/src/os/bluestore/BlueFS.cc
index 9f419c19585..83fcb8bc02d 100644
--- a/src/os/bluestore/BlueFS.cc
+++ b/src/os/bluestore/BlueFS.cc
@@ -4214,6 +4214,15 @@ bool BlueFS::debug_get_is_dev_dirty(FileWriter *h, uint8_t dev)
return h->dirty_devs[dev];
}
+void BlueFS::collect_alerts(osd_alert_list_t& alerts) {
+ if (bdev[BDEV_DB]) {
+ bdev[BDEV_DB]->collect_alerts(alerts, "DB");
+ }
+ if (bdev[BDEV_WAL]) {
+ bdev[BDEV_WAL]->collect_alerts(alerts, "WAL");
+ }
+}
+
int BlueFS::open_for_read(
std::string_view dirname,
std::string_view filename,