@@ -983,7 +983,8 @@ void TPartition::Handle(TEvPQ::TEvProposePartitionConfig::TPtr& ev, const TActor
983
983
" Step " << ev->Get ()->Step <<
984
984
" , TxId " << ev->Get ()->TxId );
985
985
986
- ProcessPendingEvent (std::unique_ptr<TEvPQ::TEvProposePartitionConfig>(ev->Release ().Release ()), ctx);
986
+ AddPendingEvent (ev);
987
+ ProcessPendingEvents (ctx);
987
988
}
988
989
989
990
template <class T >
@@ -1074,7 +1075,8 @@ void TPartition::Handle(TEvPQ::TEvTxCalcPredicate::TPtr& ev, const TActorContext
1074
1075
" Step " << ev->Get ()->Step <<
1075
1076
" , TxId " << ev->Get ()->TxId );
1076
1077
1077
- ProcessPendingEvent (std::unique_ptr<TEvPQ::TEvTxCalcPredicate>(ev->Release ().Release ()), ctx);
1078
+ AddPendingEvent (ev);
1079
+ ProcessPendingEvents (ctx);
1078
1080
}
1079
1081
1080
1082
template <>
@@ -1120,7 +1122,8 @@ void TPartition::Handle(TEvPQ::TEvTxCommit::TPtr& ev, const TActorContext& ctx)
1120
1122
" Step " << ev->Get ()->Step <<
1121
1123
" , TxId " << ev->Get ()->TxId );
1122
1124
1123
- ProcessPendingEvent (std::unique_ptr<TEvPQ::TEvTxCommit>(ev->Release ().Release ()), ctx);
1125
+ AddPendingEvent (ev);
1126
+ ProcessPendingEvents (ctx);
1124
1127
}
1125
1128
1126
1129
template <>
@@ -1157,7 +1160,8 @@ void TPartition::ProcessPendingEvent(std::unique_ptr<TEvPQ::TEvTxRollback> ev, c
1157
1160
1158
1161
void TPartition::Handle (TEvPQ::TEvTxRollback::TPtr& ev, const TActorContext& ctx)
1159
1162
{
1160
- ProcessPendingEvent (std::unique_ptr<TEvPQ::TEvTxRollback>(ev->Release ().Release ()), ctx);
1163
+ AddPendingEvent (ev);
1164
+ ProcessPendingEvents (ctx);
1161
1165
}
1162
1166
1163
1167
template <>
@@ -1201,7 +1205,9 @@ void TPartition::Handle(TEvPQ::TEvGetWriteInfoRequest::TPtr& ev, const TActorCon
1201
1205
PQ_LOG_D (" Handle TEvPQ::TEvGetWriteInfoRequest" );
1202
1206
1203
1207
ev->Get ()->OriginalPartition = ev->Sender ;
1204
- ProcessPendingEvent (std::unique_ptr<TEvPQ::TEvGetWriteInfoRequest>(ev->Release ().Release ()), ctx);
1208
+
1209
+ AddPendingEvent (ev);
1210
+ ProcessPendingEvents (ctx);
1205
1211
}
1206
1212
1207
1213
void TPartition::WriteInfoResponseHandler (
@@ -1303,7 +1309,9 @@ void TPartition::Handle(TEvPQ::TEvGetWriteInfoResponse::TPtr& ev, const TActorCo
1303
1309
PQ_LOG_D (" Handle TEvPQ::TEvGetWriteInfoResponse" );
1304
1310
1305
1311
ev->Get ()->SupportivePartition = ev->Sender ;
1306
- ProcessPendingEvent (std::unique_ptr<TEvPQ::TEvGetWriteInfoResponse>(ev->Release ().Release ()), ctx);
1312
+
1313
+ AddPendingEvent (ev);
1314
+ ProcessPendingEvents (ctx);
1307
1315
}
1308
1316
1309
1317
template <>
@@ -1319,7 +1327,9 @@ void TPartition::Handle(TEvPQ::TEvGetWriteInfoError::TPtr& ev, const TActorConte
1319
1327
" , Message " << ev->Get ()->Message );
1320
1328
1321
1329
ev->Get ()->SupportivePartition = ev->Sender ;
1322
- ProcessPendingEvent (std::unique_ptr<TEvPQ::TEvGetWriteInfoError>(ev->Release ().Release ()), ctx);
1330
+
1331
+ AddPendingEvent (ev);
1332
+ ProcessPendingEvents (ctx);
1323
1333
}
1324
1334
1325
1335
void TPartition::ReplyToProposeOrPredicate (TSimpleSharedPtr<TTransaction>& tx, bool isPredicate) {
@@ -3633,7 +3643,8 @@ void TPartition::Handle(TEvPQ::TEvDeletePartition::TPtr& ev, const TActorContext
3633
3643
{
3634
3644
PQ_LOG_D (" Handle TEvPQ::TEvDeletePartition" );
3635
3645
3636
- ProcessPendingEvent (std::unique_ptr<TEvPQ::TEvDeletePartition>(ev->Release ().Release ()), ctx);
3646
+ AddPendingEvent (ev);
3647
+ ProcessPendingEvents (ctx);
3637
3648
}
3638
3649
3639
3650
void TPartition::ScheduleNegativeReplies ()
0 commit comments