<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ydb/library/cpp/yt/containers/unittests/sentinel_optional_ut.cpp, branch main</title>
<subtitle>Mirror of YDB github repos</subtitle>
<id>https://code.mastervirt.ru/ydb/atom?h=main</id>
<link rel='self' href='https://code.mastervirt.ru/ydb/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/'/>
<updated>2026-06-14T23:36:20Z</updated>
<entry>
<title>Add YT_DEFINE_SENTINEL_OPTIONAL macro</title>
<updated>2026-06-14T23:36:20Z</updated>
<author>
<name>babenko</name>
<email>babenko@yandex-team.com</email>
</author>
<published>2026-06-14T23:16:08Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=f8cd3660cc9c26e7dcbc92b9c226dece12649d90'/>
<id>urn:sha1:f8cd3660cc9c26e7dcbc92b9c226dece12649d90</id>
<content type='text'>
Add a macro for defining `TSentinelOptional` type aliases when the value type is not structural (e.g. has protected members) and therefore cannot use `TValueSentinel&lt;V&gt;`. The macro collapses the boilerplate sentinel struct plus `using` declaration into a single line:

```cpp
// before
struct TInstantSentinel
{
    static constexpr auto Sentinel = TInstant::Zero();
};
using TSentinelOptionalInstant = TSentinelOptional&lt;TInstant, TInstantSentinel&gt;;

// after
YT_DEFINE_SENTINEL_OPTIONAL(TSentinelOptionalInstant, TInstant, TInstant::Zero());
```

Also convert the existing call sites in `service_detail.cpp` and `inferrum/block_cache.cpp`.
commit_hash:5dcdeb8db215736b0ce5a5b71f30aead91c7b8e8
</content>
</entry>
<entry>
<title>YT-27910: Make some more fields in TServiceContext atomic</title>
<updated>2026-04-12T11:03:33Z</updated>
<author>
<name>babenko</name>
<email>babenko@yandex-team.com</email>
</author>
<published>2026-04-12T10:31:27Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=2f678ac94fa0e9aeffde6130e9015786e7ea4ed3'/>
<id>urn:sha1:2f678ac94fa0e9aeffde6130e9015786e7ea4ed3</id>
<content type='text'>
commit_hash:24a87198c8fc53da983f9678679b990070e329b8
</content>
</entry>
</feed>
