robot-piglet 8 месяцев назад
Родитель
Сommit
e94435e97e
2 измененных файлов с 5 добавлено и 3 удалено
  1. 2 0
      build/mapping.conf.json
  2. 3 3
      yt/yt/client/driver/transaction_commands.cpp

+ 2 - 0
build/mapping.conf.json

@@ -52,6 +52,7 @@
         "6066996288": "https://devtools-registry.s3.yandex.net/6066996288",
         "6067006318": "https://devtools-registry.s3.yandex.net/6067006318",
         "6067029960": "https://devtools-registry.s3.yandex.net/6067029960",
+        "6577190334": "https://devtools-registry.s3.yandex.net/6577190334",
         "5543659225": "https://devtools-registry.s3.yandex.net/5543659225",
         "5560184603": "https://devtools-registry.s3.yandex.net/5560184603",
         "5553311553": "https://devtools-registry.s3.yandex.net/5553311553",
@@ -631,6 +632,7 @@
         "6066996288": "OTHER_RESOURCE-none-1.22.1-y_go1.22.1.linux-amd64.tar.gz",
         "6067006318": "OTHER_RESOURCE-none-1.22.1-y_go1.22.1.linux-arm64.tar.gz",
         "6067029960": "OTHER_RESOURCE-none-1.22.1-y_go1.22.1.windows-amd64.tar.gz",
+        "6577190334": "OTHER_RESOURCE-none-1.22.1-y_go1.22.1.windows-amd64.tar.gz",
         "5543659225": "OTHER_RESOURCE-none-none-clang-darwin-arm64.tgz",
         "5560184603": "OTHER_RESOURCE-none-none-clang-mingw64.tgz",
         "5553311553": "OTHER_RESOURCE-none-none-clang-new-darwin-arm64.tgz",

+ 3 - 3
yt/yt/client/driver/transaction_commands.cpp

@@ -177,9 +177,7 @@ void TCommitTransactionCommand::DoExecute(ICommandContextPtr context)
     auto transactionCommitResult = WaitFor(transaction->Commit(Options))
         .ValueOrThrow();
 
-    if (context->GetConfig()->ApiVersion == ApiVersion3 || !context->GetConfig()->EnableInternalCommands) {
-        ProduceEmptyOutput(context);
-    } else {
+    if (context->GetConfig()->ApiVersion >= ApiVersion4) {
         ProduceOutput(
             context,
             [&] (IYsonConsumer* consumer) {
@@ -193,6 +191,8 @@ void TCommitTransactionCommand::DoExecute(ICommandContextPtr context)
                             })
                     .EndMap();
             });
+    } else {
+        ProduceEmptyOutput(context);
     }
 }