From 3486d003d6dd7ac593266210e51f7574817269b4 Mon Sep 17 00:00:00 2001 From: Dimitris Staratzis <33267511+DimitrisStaratzis@users.noreply.github.com> Date: Wed, 28 Aug 2024 18:09:24 +0300 Subject: [PATCH] add comments --- tiledb/sm/query/writers/global_order_writer.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/tiledb/sm/query/writers/global_order_writer.cc b/tiledb/sm/query/writers/global_order_writer.cc index b0ed057c807a..36008a40f3cf 100644 --- a/tiledb/sm/query/writers/global_order_writer.cc +++ b/tiledb/sm/query/writers/global_order_writer.cc @@ -1525,6 +1525,7 @@ NDRange GlobalOrderWriter::ndranges_after_split( } uint64_t end = start_ + (rows_of_tiles_to_write * tile_extent) - 1; + // if there is a remainder it means we need one more row if (tiles_in_current_row_ != 0 && !reached_end_of_fragment && end < end_ && moved_row) { end++;