summaryrefslogtreecommitdiff
path: root/ext/kv/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/kv/lib.rs')
-rw-r--r--ext/kv/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/kv/lib.rs b/ext/kv/lib.rs
index 456a1ebf7..943aae460 100644
--- a/ext/kv/lib.rs
+++ b/ext/kv/lib.rs
@@ -802,6 +802,9 @@ where
for enqueue in &enqueues {
total_payload_size += check_enqueue_payload_size(&enqueue.payload)?;
+ if let Some(schedule) = enqueue.backoff_schedule.as_ref() {
+ total_payload_size += 4 * schedule.len();
+ }
}
if total_payload_size > MAX_TOTAL_MUTATION_SIZE_BYTES {