Skip to content

Commit 4dba26b

Browse files
author
=
committed
Fixed compilation issues
1 parent 2b65f34 commit 4dba26b

6 files changed

Lines changed: 32 additions & 28 deletions

File tree

capio/common/requests.hpp

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
#ifndef CAPIO_COMMON_REQUESTS_HPP
22
#define CAPIO_COMMON_REQUESTS_HPP
33

4-
constexpr const int CAPIO_REQUEST_ACCESS = 0;
5-
constexpr const int CAPIO_REQUEST_CLONE = 1;
6-
constexpr const int CAPIO_REQUEST_CLOSE = 2;
7-
constexpr const int CAPIO_REQUEST_CREATE = 3;
8-
constexpr const int CAPIO_REQUEST_CREATE_EXCLUSIVE = 4;
9-
constexpr const int CAPIO_REQUEST_DUP = 5;
10-
constexpr const int CAPIO_REQUEST_EXIT_GROUP = 6;
11-
constexpr const int CAPIO_REQUEST_FSTAT = 7;
12-
constexpr const int CAPIO_REQUEST_GETDENTS = 8;
13-
constexpr const int CAPIO_REQUEST_GETDENTS64 = 9;
14-
constexpr const int CAPIO_REQUEST_HANDSHAKE_NAMED = 10;
15-
constexpr const int CAPIO_REQUEST_MKDIR = 11;
16-
constexpr const int CAPIO_REQUEST_OPEN = 12;
17-
constexpr const int CAPIO_REQUEST_READ = 13;
18-
constexpr const int CAPIO_REQUEST_RENAME = 14;
19-
constexpr const int CAPIO_REQUEST_SEEK = 15;
20-
constexpr const int CAPIO_REQUEST_SEEK_DATA = 16;
21-
constexpr const int CAPIO_REQUEST_SEEK_END = 17;
22-
constexpr const int CAPIO_REQUEST_SEEK_HOLE = 18;
23-
constexpr const int CAPIO_REQUEST_STAT = 19;
24-
constexpr const int CAPIO_REQUEST_UNLINK = 20;
25-
constexpr const int CAPIO_REQUEST_WRITE = 21;
26-
constexpr const int CAPIO_REQUEST_RMDIR = 22;
4+
constexpr const int CAPIO_REQUEST_ACCESS = 0;
5+
constexpr const int CAPIO_REQUEST_CLONE = 1;
6+
constexpr const int CAPIO_REQUEST_CLOSE = 2;
7+
constexpr const int CAPIO_REQUEST_CREATE = 3;
8+
constexpr const int CAPIO_REQUEST_CREATE_EXCLUSIVE = 4;
9+
constexpr const int CAPIO_REQUEST_DUP = 5;
10+
constexpr const int CAPIO_REQUEST_EXIT_GROUP = 6;
11+
constexpr const int CAPIO_REQUEST_FSTAT = 7;
12+
constexpr const int CAPIO_REQUEST_GETDENTS = 8;
13+
constexpr const int CAPIO_REQUEST_GETDENTS64 = 9;
14+
constexpr const int CAPIO_REQUEST_HANDSHAKE_NAMED = 10;
15+
constexpr const int CAPIO_REQUEST_MKDIR = 11;
16+
constexpr const int CAPIO_REQUEST_OPEN = 12;
17+
constexpr const int CAPIO_REQUEST_READ = 13;
18+
constexpr const int CAPIO_REQUEST_RENAME = 14;
19+
constexpr const int CAPIO_REQUEST_SEEK = 15;
20+
constexpr const int CAPIO_REQUEST_SEEK_DATA = 16;
21+
constexpr const int CAPIO_REQUEST_SEEK_END = 17;
22+
constexpr const int CAPIO_REQUEST_SEEK_HOLE = 18;
23+
constexpr const int CAPIO_REQUEST_STAT = 19;
24+
constexpr const int CAPIO_REQUEST_UNLINK = 20;
25+
constexpr const int CAPIO_REQUEST_WRITE = 21;
26+
constexpr const int CAPIO_REQUEST_RMDIR = 22;
2727

2828
constexpr const int CAPIO_NR_REQUESTS = 24;
2929

capio/server/include/remote/requests.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#ifndef CAPIO_REMOTE_REQUESTS_HPP
22
#define CAPIO_REMOTE_REQUESTS_HPP
33

4-
#include "storage/manager.hpp"
54
#include "common/requests.hpp"
5+
#include "storage/manager.hpp"
66
#include "utils/location.hpp"
77

88
extern StorageManager *storage_manager;

capio/server/include/utils/location.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
#include <mutex>
55
#include <thread>
66

7-
#include "utils/types.hpp"
87
#include "remote/backend.hpp"
8+
#include "utils/types.hpp"
99

1010
extern Backend *backend;
1111
extern char *node_name;

capio/server/include/utils/signals.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
#include <csignal>
55

6-
#include "remote/backend.hpp"
76
#include "client/manager.hpp"
87
#include "client/request.hpp"
8+
#include "remote/backend.hpp"
99

1010
extern ClientManager *client_manager;
1111
extern StorageManager *storage_manager;

capio/tests/unit/server/src/client_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define CAPIO_CLIENT_MANAGER_HPP
33
#include <gtest/gtest.h>
44

5-
#include <client-manager/client_manager.hpp>
5+
#include <client/manager.hpp>
66

77
extern ClientManager *client_manager;
88

capio/tests/unit/server/src/main.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@ char *node_name;
44

55
#include "capiocl.hpp"
66
#include "capiocl/engine.h"
7-
#include "client-manager/client_manager.hpp"
7+
#include "client/manager.hpp"
88
#include "common/constants.hpp"
99
#include "storage/manager.hpp"
1010
#include "utils/capiocl_adapter.hpp"
1111
#include "utils/location.hpp"
1212

13+
CSFilesSentMap_t files_sent;
14+
CSClientsRemotePendingNFilesMap_t clients_remote_pending_nfiles;
15+
std::mutex nfiles_mutex;
16+
1317
capiocl::engine::Engine *capio_cl_engine = nullptr;
1418
StorageManager *storage_manager = nullptr;
1519
ClientManager *client_manager = nullptr;

0 commit comments

Comments
 (0)