summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnaury <[email protected]>2023-02-10 22:31:29 +0300
committersnaury <[email protected]>2023-02-10 22:31:29 +0300
commit11b962b8e62695efbacddbab264d4821c53edb17 (patch)
treeff734d0b811136a9e13e63220e48f4541e39425b
parentdf0b1817f194e6c9b6294c06c6d79b173fa71480 (diff)
Enable LockedWrites by default in DataShards
-rw-r--r--ydb/core/protos/config.proto2
-rw-r--r--ydb/core/tx/datashard/datashard.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/ydb/core/protos/config.proto b/ydb/core/protos/config.proto
index 7d86fe99f75..0a2b64f8209 100644
--- a/ydb/core/protos/config.proto
+++ b/ydb/core/protos/config.proto
@@ -1351,7 +1351,7 @@ message TImmediateControlsConfig {
Description: "Enables experimental persistent locked writes",
MinValue: 0,
MaxValue: 1,
- DefaultValue: 0 }];
+ DefaultValue: 1 }];
optional uint64 MaxLockedWritesPerKey = 15 [(ControlOptions) = {
Description: "Maximum number of uncommitted locked writes per key",
MinValue: 0,
diff --git a/ydb/core/tx/datashard/datashard.cpp b/ydb/core/tx/datashard/datashard.cpp
index 973fc75d300..a509ac938ed 100644
--- a/ydb/core/tx/datashard/datashard.cpp
+++ b/ydb/core/tx/datashard/datashard.cpp
@@ -147,7 +147,7 @@ TDataShard::TDataShard(const TActorId &tablet, TTabletStorageInfo *info)
, TtlReadAheadHi(0, 0, 128*1024*1024)
, EnablePrioritizedMvccSnapshotReads(1, 0, 1)
, EnableUnprotectedMvccSnapshotReads(1, 0, 1)
- , EnableLockedWrites(0, 0, 1)
+ , EnableLockedWrites(1, 0, 1)
, MaxLockedWritesPerKey(1000, 0, 1000000)
, EnableLeaderLeases(1, 0, 1)
, MinLeaderLeaseDurationUs(250000, 1000, 5000000)