diff options
| author | Innokentii Mokin <[email protected]> | 2024-03-06 17:02:14 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-03-06 17:02:14 +0300 |
| commit | 7a0ab59eea5fc2cd0958f2562c6313ea81bb1bfa (patch) | |
| tree | 39a5b0e3d7f8cfc394b417ccb7476231cee5a268 | |
| parent | 0ff0488c1db005711fc78185d04fa4be4ea3f246 (diff) | |
Fix TWithDefault Behavior (#2498)
| -rw-r--r-- | ydb/core/config/init/init_impl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ydb/core/config/init/init_impl.h b/ydb/core/config/init/init_impl.h index 16ceef9e3a7..bf2bdeae2f6 100644 --- a/ydb/core/config/init/init_impl.h +++ b/ydb/core/config/init/init_impl.h @@ -194,7 +194,7 @@ struct TWithDefault { } void EnsureDefined() const { - if (Y_UNLIKELY(!Default)) { + if (Y_UNLIKELY(Default)) { ythrow yexception() << "TWithDefault access through GetRef() assuming it is non-default"; } } |
