We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b52dd35 commit dbf26c5Copy full SHA for dbf26c5
ydb/core/kqp/common/kqp_tx_manager.cpp
@@ -280,7 +280,7 @@ class TKqpTransactionManager : public IKqpTransactionManager {
280
}
281
282
bool NeedCommit() const override {
283
- const bool dontNeedCommit = IsReadOnly() && (IsSingleShard() || HasSnapshot());
+ const bool dontNeedCommit = IsEmpty() || IsReadOnly() && (IsSingleShard() || HasSnapshot());
284
return !dontNeedCommit;
285
286
0 commit comments