Coalesce ESP background contact I/O and defer backup cleanup
This commit is contained in:
1 parent
8bc93822ef
commit
9c43efb0bc
11 files changed
+584
-44
No files matched your search
@@ -2531,7 +2531,7 @@ bool DataStore::serviceContactWrite(DataStoreHost* host,
|
||||
// The revision/session guard above also applies to every setup step.
|
||||
// Keep initialization separate from serialization, including its final
|
||||
// buffer configuration, so transports are serviced between operations.
|
||||
const auto progress = _contact_write->serviceBegin();
|
||||
const auto progress = _contact_write->serviceBegin(true);
|
||||
if (progress == mesh::ContactFileTransaction::BeginProgress::Failed) {
|
||||
cancelContactWrite();
|
||||
return false;
|
||||
@@ -2581,7 +2581,7 @@ bool DataStore::serviceContactWrite(DataStoreHost* host,
|
||||
#endif
|
||||
// Keep the 64-byte CRC scratch while verifying at most 512 bytes per
|
||||
// background pass; transports run between these bounded batches.
|
||||
const auto progress = _contact_write->serviceCommit(true, 8);
|
||||
const auto progress = _contact_write->serviceCommit(true, 8, true);
|
||||
if (progress == mesh::ContactFileTransaction::CommitProgress::Pending) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user