mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
6c29aad4a0
Summary: There's a few things broken with common/rust/sql and the blobstore healer's handling of replication lag right now: - If Seconds_Behind_Master isn't an int (it'll be NULL if replications is paused), it just panics. - If it's talking to a server that it expected to be a replica but is a master, it returns None for the replication lag, but 0 would be more appropriate. - If a region no longer has a replica, it errors out. This diff fixes that: - If replication is paused, we return None for lag. - If we're talking to a master, we return 0. - If a region has no replica, we ignore it. Reviewed By: StanislavGlebik Differential Revision: D17787580 fbshipit-source-id: 9e5e7682456870b88910afec12e1c409fd8c5ba6 |
||
---|---|---|
.. | ||
admin | ||
blobrepo_checker/src | ||
blobstore_healer | ||
bonsai_verify | ||
tests | ||
aliasverify.rs | ||
backfill_derived_data.rs | ||
benchmark_filestore.rs | ||
blobimport.rs | ||
configlint.rs | ||
dumprev.rs | ||
idxdump.rs | ||
lfs_import.rs | ||
populate_healer.rs | ||
rechunker.rs | ||
revlogrepo.rs | ||
statistics_collector.rs |