summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorilnaz <[email protected]>2023-08-22 10:12:35 +0300
committerilnaz <[email protected]>2023-08-22 10:27:06 +0300
commitc556bbe03b2d7e9d995cee2936e9d8251282c6d9 (patch)
treed18f92e3355ca4c0fa17fbf5be8c76a4cbbfe024
parentb9cdc33a8132729df65c4cd731bafeb24da9a11c (diff)
Serialize at least one line when uploading using import-data KIKIMR-19108
-rw-r--r--ydb/public/lib/ydb_cli/dump/restore_import_data.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ydb/public/lib/ydb_cli/dump/restore_import_data.cpp b/ydb/public/lib/ydb_cli/dump/restore_import_data.cpp
index b6a9f412af1..724d54a0262 100644
--- a/ydb/public/lib/ydb_cli/dump/restore_import_data.cpp
+++ b/ydb/public/lib/ydb_cli/dump/restore_import_data.cpp
@@ -456,7 +456,7 @@ public:
}
auto handle = Pop();
- while (result.size() + handle.mapped().size() < maxSize) {
+ do {
result << handle.mapped() << "\n";
if (Empty()) {
@@ -464,7 +464,7 @@ public:
}
handle = Pop();
- }
+ } while (result.size() + handle.mapped().size() < maxSize);
Add(std::move(handle.key()), std::move(handle.mapped()));
return result;