Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad-gogov committed Sep 10, 2024
1 parent 92fd22c commit 09d2eb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class ISSEntityUpdate {

TConclusionStatus Initialize(const TUpdateInitializationContext& context) {
AFL_VERIFY(!Initialized);
if (!AppDataVerified().FeatureFlags.GetEnableOlapCompression() && isAlterCompression(context)) {
if (!AppData()->FeatureFlags.GetEnableOlapCompression() && isAlterCompression(context)) {
return TConclusionStatus::Fail("Compression is disabled for OLAP tables");
}
auto result = DoInitialize(context);
Expand Down
2 changes: 1 addition & 1 deletion ydb/core/tx/schemeshard/olap/operations/alter_store.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ class TAlterOlapStore: public TSubOperation {
return result;
}

if (!AppDataVerified().FeatureFlags.GetEnableOlapCompression() && isAlterCompression()) {
if (!AppData()->FeatureFlags.GetEnableOlapCompression() && isAlterCompression()) {
result->SetError(NKikimrScheme::StatusPreconditionFailed, "Compression is disabled for OLAP tables");
return result;
}
Expand Down

0 comments on commit 09d2eb5

Please sign in to comment.