Skip to content

Commit cd38426

Browse files
committed
[#29224] DocDB: Enable object locking feature on by default for release builds
Summary: This revision enables object locking feature on by default for release builds. This will help get additional validation from QA runs. Keeping it disabled in non release builds for now to continue getting test coverage for the feature off scenario. Test Plan: Jenkins Reviewers: rthallam, amitanand Reviewed By: rthallam, amitanand Subscribers: ybase, yql Differential Revision: https://phorge.dev.yugabyte.com/D47934
1 parent 6379818 commit cd38426

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/yb/common/common_flags.cc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,13 @@ DEFINE_RUNTIME_uint64(refresh_waiter_timeout_ms, 30000,
215215
TAG_FLAG(refresh_waiter_timeout_ms, advanced);
216216
TAG_FLAG(refresh_waiter_timeout_ms, hidden);
217217

218-
DEFINE_NON_RUNTIME_bool(enable_object_locking_for_table_locks, false,
218+
#ifdef NDEBUG
219+
constexpr bool kEnableObjectLockingForTableLocks = kEnableDdlTransactionBlocks;
220+
#else
221+
constexpr bool kEnableObjectLockingForTableLocks = false;
222+
#endif
223+
DEFINE_NON_RUNTIME_bool(enable_object_locking_for_table_locks,
224+
kEnableObjectLockingForTableLocks,
219225
"This flag enables the object lock APIs provided by tservers and masters - "
220226
"AcquireObject(Global)Lock, ReleaseObject(Global)Lock. These APIs are used to "
221227
"implement pg table locks.");

0 commit comments

Comments
 (0)