Skip to content

Commit

Permalink
ydb_topic writer: remove obsolete fields
Browse files Browse the repository at this point in the history
  • Loading branch information
qyryq committed Aug 30, 2024
1 parent efd441b commit 5ad492c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,6 @@ void TWriteSessionImpl::InitWriter() { // No Lock, very initial start - no race
ThrowFatalError("ProducerId != MessageGroupId scenario is currently not supported");
}
CompressionExecutor = Settings.CompressionExecutor_;
IExecutor::TPtr executor;
executor = CreateSyncExecutor();
executor->Start();
Executor = std::move(executor);

Settings.CompressionExecutor_->Start();
Settings.EventHandlers_.HandlersExecutor_->Start();
Expand Down Expand Up @@ -1206,7 +1202,6 @@ void TWriteSessionImpl::ResetForRetryImpl() {
}
if (!OriginalMessagesToSend.empty() && OriginalMessagesToSend.front().Id < minId)
minId = OriginalMessagesToSend.front().Id;
MinUnsentId = minId;
Y_ABORT_UNLESS(PackedMessagesToSend.size() == totalPackedMessages);
Y_ABORT_UNLESS(OriginalMessagesToSend.size() == totalOriginalMessages);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -410,10 +410,7 @@ class TWriteSessionImpl : public TContinuationTokenIssuer,
TWriteSessionSettings Settings;
std::shared_ptr<TTopicClient::TImpl> Client;
std::shared_ptr<TGRpcConnectionsImpl> Connections;
TString TargetCluster;
TString InitialCluster;
TString CurrentCluster;
TString PreferredClusterByCDS;

std::shared_ptr<IWriteSessionConnectionProcessorFactory> ConnectionFactory;
TDbDriverStatePtr DbDriverState;
TStringType PrevToken;
Expand All @@ -433,7 +430,6 @@ class TWriteSessionImpl : public TContinuationTokenIssuer,
std::shared_ptr<TServerMessage> ServerMessage; // Server message to write server response to.

TString SessionId;
IExecutor::TPtr Executor;
IExecutor::TPtr CompressionExecutor;
size_t MemoryUsage = 0; //!< Estimated amount of memory used
bool FirstTokenSent = false;
Expand All @@ -456,10 +452,8 @@ class TWriteSessionImpl : public TContinuationTokenIssuer,
ui32 PartitionId = 0;
TPartitionLocation PreferredPartitionLocation = {};
ui64 NextId = 0;
ui64 MinUnsentId = 1;
TMaybe<ui64> InitSeqNo;
TMaybe<bool> AutoSeqNoMode;
bool ValidateSeqNoMode = false;

NThreading::TPromise<ui64> InitSeqNoPromise;
bool InitSeqNoSetDone = false;
Expand Down

0 comments on commit 5ad492c

Please sign in to comment.