diff options
author | nastprol <nastprol@yandex-team.com> | 2024-10-17 11:56:20 +0300 |
---|---|---|
committer | nastprol <nastprol@yandex-team.com> | 2024-10-17 12:08:54 +0300 |
commit | cdf829ba2950dbc46273b904ead57acdf6c702c2 (patch) | |
tree | 9817725485955b038b8bb37eded19f115add5b14 | |
parent | 3682ce7f2626a0e22e9cf839b808faed3c5d70d6 (diff) | |
download | ydb-cdf829ba2950dbc46273b904ead57acdf6c702c2.tar.gz |
Fix disabling ref counted tracking
commit_hash:8552424a0dfce80a71c406632beba95646bf5b3e
-rw-r--r-- | library/cpp/yt/memory/blob.cpp | 4 | ||||
-rw-r--r-- | library/cpp/yt/memory/ya.make | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/library/cpp/yt/memory/blob.cpp b/library/cpp/yt/memory/blob.cpp index 260cfb698b..b4de038948 100644 --- a/library/cpp/yt/memory/blob.cpp +++ b/library/cpp/yt/memory/blob.cpp @@ -197,6 +197,8 @@ void TBlob::SetTagCookie(TRefCountedTypeCookie tagCookie) { #ifdef YT_ENABLE_REF_COUNTED_TRACKING TagCookie_ = tagCookie; +#else + Y_UNUSED(tagCookie); #endif } @@ -204,6 +206,8 @@ void TBlob::SetTagCookie(const TBlob& other) { #ifdef YT_ENABLE_REF_COUNTED_TRACKING TagCookie_ = other.TagCookie_; +#else + Y_UNUSED(other); #endif } diff --git a/library/cpp/yt/memory/ya.make b/library/cpp/yt/memory/ya.make index c2d78b0d07..bd817454a9 100644 --- a/library/cpp/yt/memory/ya.make +++ b/library/cpp/yt/memory/ya.make @@ -2,6 +2,10 @@ LIBRARY() INCLUDE(${ARCADIA_ROOT}/library/cpp/yt/ya_cpp.make.inc) +IF (YT_DISABLE_REF_COUNTED_TRACKING) + CXXFLAGS(-DYT_DISABLE_REF_COUNTED_TRACKING) +ENDIF() + SRCS( allocation_tags_hooks.cpp blob.cpp |