diff options
author | ilnaz <[email protected]> | 2023-08-22 10:12:35 +0300 |
---|---|---|
committer | ilnaz <[email protected]> | 2023-08-22 10:27:06 +0300 |
commit | c556bbe03b2d7e9d995cee2936e9d8251282c6d9 (patch) | |
tree | d18f92e3355ca4c0fa17fbf5be8c76a4cbbfe024 | |
parent | b9cdc33a8132729df65c4cd731bafeb24da9a11c (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.cpp | 4 |
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; |