Skip to content

Commit

Permalink
Fixed last dump docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolopastore committed Jan 5, 2015
1 parent 8f0913f commit 8a4d1c8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions elasticmover.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,13 @@ function es2file($es_url, $output, $data_type, $verbose_mode = 1, $chunk_size =
$dump = "";
}
} else {
if ($dump != "") {
appendDataToFile($dump, $output);
if ($verbose_mode > 1)
echo "[" . date('c') . "] Save docs to dump file: saved $chuck_counter docs\n";
$chuck_counter = 0;
$dump = "";
}
return;
}
}
Expand Down

0 comments on commit 8a4d1c8

Please sign in to comment.