Skip to content

Commit

Permalink
fix test build
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmorozov333 committed Sep 20, 2024
1 parent 184f41b commit 9c6b3f1
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions ydb/core/tx/columnshard/engines/ut/ut_logs_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,8 @@ Y_UNIT_TEST_SUITE(TColumnEngineTestLogs) {
engine.Load(db);

std::vector<TCommittedData> dataToIndex = {
TCommittedData(TUserData::Build(paths[0], blobRanges[0], TLocalHelper::GetMetaProto(), 0, {}), TSnapshot(1, 2), (TInsertWriteId)2),
TCommittedData(TUserData::Build(paths[0], blobRanges[1], TLocalHelper::GetMetaProto(), 0, {}), TSnapshot(2, 1), (TInsertWriteId)1)
TCommittedData(TUserData::Build(paths[0], blobRanges[0], TLocalHelper::GetMetaProto(), 0, {}), TSnapshot(1, 2), 0, (TInsertWriteId)2),
TCommittedData(TUserData::Build(paths[0], blobRanges[1], TLocalHelper::GetMetaProto(), 0, {}), TSnapshot(2, 1), 0, (TInsertWriteId)1)
};

// write
Expand Down Expand Up @@ -553,7 +553,7 @@ Y_UNIT_TEST_SUITE(TColumnEngineTestLogs) {
std::vector<TCommittedData> dataToIndex;
TSnapshot ss(planStep, txId);
dataToIndex.push_back(
TCommittedData(TUserData::Build(pathId, blobRange, TLocalHelper::GetMetaProto(), 0, {}), ss, (TInsertWriteId)txId));
TCommittedData(TUserData::Build(pathId, blobRange, TLocalHelper::GetMetaProto(), 0, {}), ss, 0, (TInsertWriteId)txId));

bool ok = Insert(engine, db, ss, std::move(dataToIndex), blobs, step);
UNIT_ASSERT(ok);
Expand Down Expand Up @@ -651,7 +651,8 @@ Y_UNIT_TEST_SUITE(TColumnEngineTestLogs) {
// PlanStep, TxId, PathId, DedupId, BlobId, Data, [Metadata]
std::vector<TCommittedData> dataToIndex;
TSnapshot ss(planStep, txId);
dataToIndex.push_back(TCommittedData(TUserData::Build(pathId, blobRange, TLocalHelper::GetMetaProto(), 0, {}), ss, (TInsertWriteId)txId));
dataToIndex.push_back(
TCommittedData(TUserData::Build(pathId, blobRange, TLocalHelper::GetMetaProto(), 0, {}), ss, 0, (TInsertWriteId)txId));

bool ok = Insert(engine, db, ss, std::move(dataToIndex), blobs, step);
blobsAll.Merge(std::move(blobs));
Expand Down Expand Up @@ -682,7 +683,8 @@ Y_UNIT_TEST_SUITE(TColumnEngineTestLogs) {
// PlanStep, TxId, PathId, DedupId, BlobId, Data, [Metadata]
std::vector<TCommittedData> dataToIndex;
TSnapshot ss(planStep, txId);
dataToIndex.push_back(TCommittedData(TUserData::Build(pathId, blobRange, TLocalHelper::GetMetaProto(), 0, {}), ss, TInsertWriteId(txId)));
dataToIndex.push_back(
TCommittedData(TUserData::Build(pathId, blobRange, TLocalHelper::GetMetaProto(), 0, {}), ss, 0, TInsertWriteId(txId)));

bool ok = Insert(engine, db, ss, std::move(dataToIndex), blobs, step);
UNIT_ASSERT(ok);
Expand Down Expand Up @@ -730,7 +732,7 @@ Y_UNIT_TEST_SUITE(TColumnEngineTestLogs) {
TSnapshot ss(planStep, txId);
std::vector<TCommittedData> dataToIndex;
dataToIndex.push_back(
TCommittedData(TUserData::Build(pathId, blobRange, TLocalHelper::GetMetaProto(), 0, {}), ss, TInsertWriteId(txId)));
TCommittedData(TUserData::Build(pathId, blobRange, TLocalHelper::GetMetaProto(), 0, {}), ss, 0, TInsertWriteId(txId)));

bool ok = Insert(engine, db, ss, std::move(dataToIndex), blobs, step);
UNIT_ASSERT(ok);
Expand Down

0 comments on commit 9c6b3f1

Please sign in to comment.