@@ -43,7 +43,7 @@ bool TTxWrite::DoExecute(TTransactionContext& txc, const TActorContext&) {
43
43
const auto minReadSnapshot = Self->GetMinReadSnapshot ();
44
44
for (auto && aggr : buffer.GetAggregations ()) {
45
45
const auto & writeMeta = aggr->GetWriteMeta ();
46
- Y_ABORT_UNLESS (Self->TablesManager .IsReadyForFinishWrite (writeMeta.GetPathId (), minReadSnapshot));
46
+ Y_ABORT_UNLESS (Self->TablesManager .IsReadyForFinishWrite (writeMeta.GetPathId (). InternalPathId , minReadSnapshot));
47
47
txc.DB .NoMoreReadsForTx ();
48
48
TWriteOperation::TPtr operation;
49
49
if (writeMeta.HasLongTxId ()) {
@@ -105,14 +105,14 @@ bool TTxWrite::DoExecute(TTransactionContext& txc, const TActorContext&) {
105
105
lock.SetDataShard (Self->TabletID ());
106
106
lock.SetGeneration (info.GetGeneration ());
107
107
lock.SetCounter (info.GetInternalGenerationCounter ());
108
- lock.SetPathId (writeMeta.GetPathId ().GetInternalPathIdValue ());
108
+ lock.SetPathId (writeMeta.GetPathId ().InternalPathId . GetInternalPathIdValue ());
109
109
auto ev = NEvents::TDataEvents::TEvWriteResult::BuildCompleted (Self->TabletID (), operation->GetLockId (), lock);
110
110
Results.emplace_back (std::move (ev), writeMeta.GetSource (), operation->GetCookie ());
111
111
}
112
112
} else {
113
113
Y_ABORT_UNLESS (aggr->GetInsertWriteIds ().size () == 1 );
114
114
auto ev = std::make_unique<TEvColumnShard::TEvWriteResult>(
115
- Self->TabletID (), writeMeta, (ui64)aggr->GetInsertWriteIds ().front (), NKikimrTxColumnShard::EResultStatus::SUCCESS);
115
+ Self->TabletID (), writeMeta. GetPathId (). LocalPathId , writeMeta. GetDedupId () , (ui64)aggr->GetInsertWriteIds ().front (), NKikimrTxColumnShard::EResultStatus::SUCCESS);
116
116
Results.emplace_back (std::move (ev), writeMeta.GetSource (), 0 );
117
117
}
118
118
}
@@ -141,8 +141,8 @@ void TTxWrite::DoComplete(const TActorContext& ctx) {
141
141
if (!writeMeta.HasLongTxId ()) {
142
142
auto op = Self->GetOperationsManager ().GetOperationVerified ((TOperationWriteId)writeMeta.GetWriteId ());
143
143
if (op->GetBehaviour () == EOperationBehaviour::WriteWithLock || op->GetBehaviour () == EOperationBehaviour::NoTxWrite) {
144
- if (op->GetBehaviour () != EOperationBehaviour::NoTxWrite || Self->GetOperationsManager ().HasReadLocks (writeMeta.GetPathId ())) {
145
- auto evWrite = std::make_shared<NOlap::NTxInteractions::TEvWriteWriter>(writeMeta.GetPathId (),
144
+ if (op->GetBehaviour () != EOperationBehaviour::NoTxWrite || Self->GetOperationsManager ().HasReadLocks (writeMeta.GetPathId (). InternalPathId )) {
145
+ auto evWrite = std::make_shared<NOlap::NTxInteractions::TEvWriteWriter>(writeMeta.GetPathId (). InternalPathId ,
146
146
buffer.GetAggregations ()[i]->GetRecordBatch (), Self->GetIndexOptional ()->GetVersionedIndex ().GetPrimaryKey ());
147
147
Self->GetOperationsManager ().AddEventForLock (*Self, op->GetLockId (), evWrite);
148
148
}
0 commit comments