File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
ydb/core/tx/columnshard/engines Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ class ISnapshotSchema;
1313class TIndexChunkLoadContext ;
1414class TGranuleShardingInfo ;
1515
16- class TPortionInfoConstructor : TMoveOnly {
16+ class TPortionInfoConstructor {
1717private:
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+
5558public:
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;
Original file line number Diff line number Diff 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 ());
You can’t perform that action at this time.
0 commit comments