mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
database: Expose current memory view update backlog
Expose the base replica's current memory view update backlog, which is defined in terms of units consumed from the semaphore. Signed-off-by: Duarte Nunes <duarte@scylladb.com>
This commit is contained in:
@@ -77,6 +77,7 @@
|
||||
#include <seastar/core/metrics_registration.hh>
|
||||
#include "tracing/trace_state.hh"
|
||||
#include "db/view/view.hh"
|
||||
#include "db/view/view_update_backlog.hh"
|
||||
#include "db/view/row_locking.hh"
|
||||
#include "lister.hh"
|
||||
#include "utils/phased_barrier.hh"
|
||||
@@ -1450,6 +1451,10 @@ public:
|
||||
return _querier_cache;
|
||||
}
|
||||
|
||||
db::view::update_backlog get_view_update_backlog() const {
|
||||
return {max_memory_pending_view_updates() - _view_update_concurrency_sem.current(), max_memory_pending_view_updates()};
|
||||
}
|
||||
|
||||
friend class distributed_loader;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user