diff options
author | ivanmorozov <ivanmorozov@yandex-team.com> | 2023-06-19 15:01:59 +0300 |
---|---|---|
committer | ivanmorozov <ivanmorozov@yandex-team.com> | 2023-06-19 15:01:59 +0300 |
commit | 69873be8b8b4919d7ed2709eeec165a4c591a15c (patch) | |
tree | 7643dc947a68dce376c63ade1295eef2367a4ddb | |
parent | aa2aea0e4c3a16ff23b55f07cefae544948fb144 (diff) | |
download | ydb-69873be8b8b4919d7ed2709eeec165a4c591a15c.tar.gz |
fix race on cache construction
-rw-r--r-- | ydb/core/tx/columnshard/engines/reader/order_control/abstract.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/ydb/core/tx/columnshard/engines/reader/order_control/abstract.h b/ydb/core/tx/columnshard/engines/reader/order_control/abstract.h index 7891dcc4d6..21c0d4ff6b 100644 --- a/ydb/core/tx/columnshard/engines/reader/order_control/abstract.h +++ b/ydb/core/tx/columnshard/engines/reader/order_control/abstract.h @@ -14,8 +14,6 @@ public: NeedNotAppliedEarlyFilter = 1 << 1 }; using TFeatures = ui32; -private: - mutable std::optional<TFeatures> Features; protected: TReadMetadata::TConstPtr ReadMetadata; virtual TString DoDebugString() const = 0; @@ -34,10 +32,7 @@ protected: return 0; } TFeatures GetFeatures() const { - if (!Features) { - Features = DoGetFeatures(); - } - return *Features; + return DoGetFeatures(); } public: using TPtr = std::shared_ptr<IOrderPolicy>; |