mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 06:47:41 +03:00
wal: Exit early when retrying 0 keys
Summary: **Context**: We want to roll out the new WAL multiplexed blobstore and need final tweaks before doing that. See https://fb.quip.com/vyTWAgGZSA2Z It was printing "Requeuing 0 items", which is useless. I also fixed a typo. Differential Revision: D40715976 fbshipit-source-id: 7bf0d1608781e523992a1e32c4484828003e752a
This commit is contained in:
parent
7c1af682c9
commit
bf32800670
@ -420,9 +420,12 @@ async fn enqueue_entries(
|
||||
wal: &dyn BlobstoreWal,
|
||||
entries: Vec<BlobstoreWalEntry>,
|
||||
) -> Result<()> {
|
||||
if entries.is_empty() {
|
||||
return Ok(());
|
||||
}
|
||||
info!(
|
||||
ctx.logger(),
|
||||
"Requeueing {} some queue entries for another healing attempt",
|
||||
"Requeueing {} queue entries for another healing attempt",
|
||||
entries.len()
|
||||
);
|
||||
let new_entries = entries
|
||||
|
Loading…
Reference in New Issue
Block a user