mirror of
https://github.com/facebook/sapling.git
synced 2024-10-12 01:39:21 +03:00
Have an ODS counter for the backsyncer batch size
Summary: We want an alarm if the backsyncer Tupperware job is doing significant work; it only does anything if the pushredirect logic is buggy, or in rare cases where it wins a race. Log to ODS when this task sees a queue, so that we can investigate Reviewed By: StanislavGlebik Differential Revision: D18450577 fbshipit-source-id: 6aac1c8638c6275fad5db3db1bb4915c1b824930
This commit is contained in:
parent
acc0524f2b
commit
6813447b6c
@ -614,6 +614,20 @@ impl BlobRepo {
|
||||
.read_next_bookmark_log_entries(ctx, id, self.get_repoid(), limit, freshness)
|
||||
}
|
||||
|
||||
pub fn count_further_bookmark_log_entries(
|
||||
&self,
|
||||
ctx: CoreContext,
|
||||
id: u64,
|
||||
exclude_reason: Option<BookmarkUpdateReason>,
|
||||
) -> impl Future<Item = u64, Error = Error> {
|
||||
self.bookmarks.count_further_bookmark_log_entries(
|
||||
ctx,
|
||||
id,
|
||||
self.get_repoid(),
|
||||
exclude_reason,
|
||||
)
|
||||
}
|
||||
|
||||
/// Get Pull-Default (Pull-Default is a Mercurial concept) bookmarks by prefix, they will be
|
||||
/// read from cache or a replica, so they might be stale.
|
||||
pub fn get_pull_default_bookmarks_maybe_stale(
|
||||
|
Loading…
Reference in New Issue
Block a user