diff --git a/source/code/plugin/out_mdm.rb b/source/code/plugin/out_mdm.rb index 243251bca..135da982e 100644 --- a/source/code/plugin/out_mdm.rb +++ b/source/code/plugin/out_mdm.rb @@ -204,6 +204,7 @@ def write(chunk) count = post_body.size while count > 0 current_batch = post_body.first(@@record_batch_size) + post_body = post_body.drop(current_batch.size) count -= current_batch.size send_to_mdm current_batch end