blob: 4e35fdeee6f8d2064564ab62183b60cad10b639a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#include "flat_executor_bootlogic.h"
#include "flat_boot_stages.h"
#include "flat_boot_back.h"
#include "flat_exec_commit_mgr.h"
#include "logic_snap_main.h"
#include "flat_executor_txloglogic.h"
namespace NKikimr {
namespace NTabletFlatExecutor {
namespace NBoot {
void TStages::FinalizeLeaderLogics(TResult &result, TSteppedCookieAllocatorFactory &steppedCookieAllocatorFactory)
{
using EIdx = TCookie::EIdx;
auto *waste = Back->Waste.Get();
result.CommitManager = new TCommitManager(steppedCookieAllocatorFactory, waste, result.GcLogic.Get());
result.Snap = new TLogicSnap(steppedCookieAllocatorFactory.Sys(EIdx::SnapLz4), waste, Back->Snap);
result.Redo = new TLogicRedo(steppedCookieAllocatorFactory.Sys(EIdx::RedoLz4), result.CommitManager.Get(), Back->Redo);
}
}
}
}
|