Skip to content

Commit 036b485

Browse files
fix build
1 parent c7ea891 commit 036b485

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

ydb/core/tx/columnshard/engines/portions/constructor.h

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class ISnapshotSchema;
1313
class TIndexChunkLoadContext;
1414
class TGranuleShardingInfo;
1515

16-
class TPortionInfoConstructor: TMoveOnly {
16+
class TPortionInfoConstructor {
1717
private:
1818
YDB_ACCESSOR(ui64, PathId, 0);
1919
std::optional<ui64> PortionId;
@@ -52,7 +52,20 @@ class TPortionInfoConstructor: TMoveOnly {
5252
std::vector<TAddressBlobId> BlobIdxs;
5353
bool NeedBlobIdxsSort = false;
5454

55+
TPortionInfoConstructor(const TPortionInfoConstructor&) = default;
56+
TPortionInfoConstructor& operator=(const TPortionInfoConstructor&) = default;
57+
5558
public:
59+
TPortionInfoConstructor(TPortionInfoConstructor&&) noexcept = default;
60+
TPortionInfoConstructor& operator=(TPortionInfoConstructor&&) noexcept = default;
61+
62+
class TTestCopier {
63+
public:
64+
static TPortionInfoConstructor Copy(const TPortionInfoConstructor& source) {
65+
return source;
66+
}
67+
};
68+
5669
void SetPortionId(const ui64 value) {
5770
AFL_VERIFY(value);
5871
PortionId = value;

ydb/core/tx/columnshard/engines/ut/ut_logs_engine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class TTestDbWrapper : public IDbWrapper {
157157
auto& columns = Indices[0].Columns;
158158
for (auto& [pathId, portions] : columns) {
159159
for (auto& [portionId, portionLocal] : portions) {
160-
auto copy = portionLocal;
160+
auto copy = NOlap::TPortionInfoConstructor::TTestCopier::Copy(portionLocal);
161161
copy.MutableRecords().clear();
162162
for (const auto& rec : portionLocal.GetRecords()) {
163163
auto itContextLoader = LoadContexts[copy.GetAddress()].find(rec.GetAddress());

0 commit comments

Comments
 (0)