Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
tpashkin committed Jan 3, 2025
1 parent b512c5d commit 07f9e23
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions cloud/blockstore/libs/nbd/bench/bootstrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <cloud/blockstore/libs/diagnostics/server_stats.h>
#include <cloud/blockstore/libs/nbd/client.h>
#include <cloud/blockstore/libs/nbd/client_handler.h>
#include <cloud/blockstore/libs/nbd/error_handler.h>
#include <cloud/blockstore/libs/nbd/server.h>
#include <cloud/blockstore/libs/nbd/server_handler.h>
#include <cloud/blockstore/libs/service/context.h>
Expand Down Expand Up @@ -132,6 +133,7 @@ void TBootstrap::Init()
Logging,
std::make_shared<TServiceWrapper>(Service),
CreateServerStatsStub(),
CreateErrorHandlerStub(),
options);

TServerConfig serverConfig {
Expand Down
6 changes: 2 additions & 4 deletions cloud/blockstore/libs/nbd/error_handler.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#pragma once

#include "error_handler.h"

namespace NCloud::NBlockStore::NBD {
Expand All @@ -15,13 +13,13 @@ struct TErrorHandlerStub
{}
};

} // namespace

////////////////////////////////////////////////////////////////////////////////

IErrorHandlerPtr CreateErrorHandlerStub()
{
return std::make_shared<TErrorHandlerStub>();
}

} // namespace

} // namespace NCloud::NBlockStore::NBD
1 change: 1 addition & 0 deletions cloud/blockstore/libs/nbd/server_ut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#include "client.h"
#include "client_handler.h"
#include "error_handler.h"
#include "server_handler.h"

#include <cloud/blockstore/libs/client/config.h>
Expand Down
1 change: 1 addition & 0 deletions cloud/blockstore/libs/nbd/ya.make
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ SRCS(
binary_writer.cpp
client.cpp
client_handler.cpp
error_handler.cpp
limiter.cpp
protocol.cpp
server.cpp
Expand Down
2 changes: 2 additions & 0 deletions cloud/blockstore/tools/nbd/bootstrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <cloud/blockstore/libs/diagnostics/server_stats.h>
#include <cloud/blockstore/libs/diagnostics/volume_stats.h>
#include <cloud/blockstore/libs/nbd/device.h>
#include <cloud/blockstore/libs/nbd/error_handler.h>
#include <cloud/blockstore/libs/nbd/netlink_device.h>
#include <cloud/blockstore/libs/nbd/server.h>
#include <cloud/blockstore/libs/nbd/server_handler.h>
Expand Down Expand Up @@ -489,6 +490,7 @@ void TBootstrap::StartNbdServer(TNetworkAddress listenAddress)
Logging,
Session,
CreateServerStatsStub(),
CreateErrorHandlerStub(),
options);

TServerConfig serverConfig {
Expand Down
2 changes: 2 additions & 0 deletions cloud/blockstore/tools/testing/nbd-test/target.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "options.h"
#include "runnable.h"

#include <cloud/blockstore/libs/nbd/error_handler.h>
#include <cloud/blockstore/libs/nbd/server.h>
#include <cloud/blockstore/libs/nbd/server_handler.h>
#include <cloud/blockstore/libs/service/device_handler.h>
Expand Down Expand Up @@ -129,6 +130,7 @@ void TTestTarget::Init()
Logging,
CreateStorageStub(),
CreateServerStatsStub(),
NBD::CreateErrorHandlerStub(),
storageOptions);

NBD::TServerConfig serverConfig = {
Expand Down

0 comments on commit 07f9e23

Please sign in to comment.