Skip to content

Commit da07029

Browse files
authored
Merge ceed7ff into a276799
2 parents a276799 + ceed7ff commit da07029

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

ydb/core/blobstorage/pdisk/blobstorage_pdisk_impl_log.cpp

+5-8
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,24 @@ class TLogFlushCompletionAction : public TCompletionAction {
1313
const ui32 EndChunkIdx;
1414
const ui32 EndSectorIdx;
1515
THolder<TLogWriter> &CommonLogger;
16+
TCompletionAction* CompletionLogWrite;
1617
public:
1718
TLogFlushCompletionAction(ui32 endChunkIdx, ui32 endSectorIdx, THolder<TLogWriter> &commonLogger, TCompletionAction* completionLogWrite)
1819
: EndChunkIdx(endChunkIdx)
1920
, EndSectorIdx(endSectorIdx)
20-
, CommonLogger(commonLogger) {
21-
this->FlushAction = completionLogWrite;
22-
}
21+
, CommonLogger(commonLogger)
22+
, CompletionLogWrite(completionLogWrite) { }
2323

2424
void Exec(TActorSystem *actorSystem) override {
2525
CommonLogger->FirstUncommitted = TFirstUncommitted(EndChunkIdx, EndSectorIdx);
2626

27-
Y_DEBUG_ABORT_UNLESS(FlushAction);
28-
29-
// FlushAction here is a TCompletionLogWrite which will decrease owner's inflight count.
30-
FlushAction->Exec(actorSystem);
27+
CompletionLogWrite->Exec(actorSystem);
3128

3229
delete this;
3330
}
3431

3532
void Release(TActorSystem *actorSystem) override {
36-
FlushAction->Release(actorSystem);
33+
CompletionLogWrite->Release(actorSystem);
3734

3835
delete this;
3936
}

ydb/core/blobstorage/pdisk/blobstorage_pdisk_state.h

+1
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ struct TOwnerData {
196196
CurrentFirstLsnToKeep = 0;
197197
LastWrittenCommitLsn = 0;
198198
CutLogId = TActorId();
199+
LogEndPosition = TLogEndPosition(0, 0);
199200
WhiteboardProxyId = TActorId();
200201
LogRecordsInitiallyRead = 0;
201202
LogRecordsConsequentlyRead = 0;

0 commit comments

Comments
 (0)