@@ -55,7 +55,7 @@ namespace NKikimr {
55
55
class TSyncLogKeeperTest {
56
56
public:
57
57
void CreateState (TEntryPointPair ep);
58
- void Run (bool oldFormatForEntryPoint );
58
+ void Run ();
59
59
60
60
void PrintStatus (const TString &str = {}) {
61
61
::NKikimr::PrintStatus (State.get(), str);
@@ -130,8 +130,7 @@ namespace NKikimr {
130
130
131
131
class TCommitWithNoSwapAndDelChunks {
132
132
public:
133
- TCommitWithNoSwapAndDelChunks (bool oldFormatForEntryPoint)
134
- : OldFormatForEntryPoint(oldFormatForEntryPoint)
133
+ TCommitWithNoSwapAndDelChunks ()
135
134
{}
136
135
137
136
void Start (TSyncLogKeeperState *state, ui64 recoveryLogConfirmedLsn) {
@@ -148,7 +147,7 @@ namespace NKikimr {
148
147
TDeltaToDiskRecLog delta (10 );
149
148
TEntryPointSerializer entryPointSerializer (CommitData->SyncLogSnap ,
150
149
std::move (CommitData->ChunksToDeleteDelayed ), CommitData->RecoveryLogConfirmedLsn );
151
- entryPointSerializer.Serialize (delta, OldFormatForEntryPoint );
150
+ entryPointSerializer.Serialize (delta);
152
151
153
152
TCommitHistory commitHistory (TInstant (), commitLsn, CommitData->RecoveryLogConfirmedLsn );
154
153
TEvSyncLogCommitDone commitDone (commitHistory, entryPointSerializer.GetEntryPointDbgInfo (),
@@ -162,11 +161,10 @@ namespace NKikimr {
162
161
return {entryPointSerializer.GetSerializedData (), commitLsn};
163
162
}
164
163
private:
165
- const bool OldFormatForEntryPoint;
166
164
std::unique_ptr<TSyncLogKeeperCommitData> CommitData;
167
165
};
168
166
169
- void TSyncLogKeeperTest::Run (bool oldFormatForEntryPoint ) {
167
+ void TSyncLogKeeperTest::Run () {
170
168
TEntryPointPair entryPointPair;
171
169
CreateState (TEntryPointPair{TString (), 0 });
172
170
// start with empty log
@@ -187,7 +185,7 @@ namespace NKikimr {
187
185
Y_ABORT_UNLESS (commit);
188
186
189
187
// start parallel commit
190
- TCommitWithNoSwapAndDelChunks parallelCommit (oldFormatForEntryPoint) ;
188
+ TCommitWithNoSwapAndDelChunks parallelCommit;
191
189
parallelCommit.Start (State.get (), 10 );
192
190
193
191
// write more messages during parallel commit
@@ -208,7 +206,7 @@ namespace NKikimr {
208
206
Y_ABORT_UNLESS (commit);
209
207
210
208
// start parallel commit
211
- TCommitWithNoSwapAndDelChunks parallelCommit2 (oldFormatForEntryPoint) ;
209
+ TCommitWithNoSwapAndDelChunks parallelCommit2;
212
210
parallelCommit2.Start (State.get (), 31 );
213
211
214
212
// commit finished with lsn=33
@@ -239,14 +237,9 @@ namespace NKikimr {
239
237
// //////////////////////////////////////////////////////////////////////////
240
238
Y_UNIT_TEST_SUITE (TBlobStorageSyncLogKeeper) {
241
239
242
- Y_UNIT_TEST (CutLog_EntryPointOldFormat) {
243
- TSyncLogKeeperTest test;
244
- test.Run (true );
245
- }
246
-
247
240
Y_UNIT_TEST (CutLog_EntryPointNewFormat) {
248
241
TSyncLogKeeperTest test;
249
- test.Run (false );
242
+ test.Run ();
250
243
}
251
244
252
245
}
0 commit comments