Navigation Menu

Skip to content

Commit

Permalink
bnet: removed old code
Browse files Browse the repository at this point in the history
- removed EnableNetworkMessageDump as this is not the right place
  • Loading branch information
franku committed Jul 4, 2019
1 parent 873a53f commit 1e93088
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 24 deletions.
3 changes: 0 additions & 3 deletions core/src/console/connect_to_director.cc
Expand Up @@ -70,9 +70,6 @@ BareosSocket* ConnectToDirector(JobControlRecord& jcr,
local_tls_resource = director_resource;
}

UA_sock->EnableNetworkMessagesDump(own_resource,
director_resource);

if (local_tls_resource->IsTlsConfigured()) {
std::string qualified_resource_name;
if (!my_config->GetQualifiedResourceNameTypeConverter()->ResourceToString(
Expand Down
2 changes: 0 additions & 2 deletions core/src/dird/fd_cmds.cc
Expand Up @@ -268,8 +268,6 @@ bool ConnectToFileDaemon(JobControlRecord* jcr,

if (jcr->file_bsock) {
jcr->setJobStatus(JS_Running);
jcr->file_bsock->EnableNetworkMessagesDump(me,
jcr->res.client);
if (AuthenticateWithFileDaemon(jcr)) {
success = true;
SendInfoSuccess(jcr, ua);
Expand Down
2 changes: 0 additions & 2 deletions core/src/dird/sd_cmds.cc
Expand Up @@ -143,8 +143,6 @@ bool ConnectToStorageDaemon(JobControlRecord* jcr,
}
}

sd->EnableNetworkMessagesDump(me, store);

if (!AuthenticateWithStorageDaemon(sd.get(), jcr, store)) {
sd->close();
return false;
Expand Down
2 changes: 0 additions & 2 deletions core/src/dird/socket_server.cc
Expand Up @@ -121,11 +121,9 @@ static void* HandleConnectionRequest(ConfigurationParser* config, void* arg)
(sscanf(bs->msg, hello_client, name) == 1)) {
Dmsg1(110, "Got a FD connection at %s\n",
bstrftimes(tbuf, sizeof(tbuf), (utime_t)time(NULL)));
bs->EnableNetworkMessagesDump(*my_config, R_CLIENT);
return HandleFiledConnection(client_connections, bs, name,
fd_protocol_version);
}
bs->EnableNetworkMessagesDump(*my_config, R_CONSOLE);
return HandleUserAgentClientRequest(bs);
}

Expand Down
5 changes: 0 additions & 5 deletions core/src/filed/dir_cmd.cc
Expand Up @@ -1694,9 +1694,6 @@ static bool StorageCmd(JobControlRecord* jcr)
}
}

storage_daemon_socket->EnableNetworkMessagesDump(*my_config,
R_STORAGE);

storage_daemon_socket->fsend("Hello Start Job %s\n", jcr->Job);
if (!AuthenticateWithStoragedaemon(jcr)) {
Jmsg(jcr, M_FATAL, 0, _("Failed to authenticate Storage daemon.\n"));
Expand Down Expand Up @@ -2321,8 +2318,6 @@ static BareosSocket* connect_to_director(JobControlRecord* jcr,
}
}

director_socket->EnableNetworkMessagesDump(me, dir_res);

Dmsg1(10, "Opened connection with Director %s\n", dir_res->resource_name_);
jcr->dir_bsock = director_socket.get();

Expand Down
2 changes: 0 additions & 2 deletions core/src/filed/socket_server.cc
Expand Up @@ -88,7 +88,6 @@ static void* HandleConnectionRequest(ConfigurationParser* config, void* arg)
if (bstrncmp(bs->msg, "Hello Director", 14)) {
Dmsg1(110, "Got a DIR connection at %s\n",
bstrftimes(tbuf, sizeof(tbuf), (utime_t)time(NULL)));
bs->EnableNetworkMessagesDump(*my_config, R_DIRECTOR);
return handle_director_connection(bs);
}

Expand All @@ -98,7 +97,6 @@ static void* HandleConnectionRequest(ConfigurationParser* config, void* arg)
if (bstrncmp(bs->msg, "Hello Storage", 13)) {
Dmsg1(110, "Got a SD connection at %s\n",
bstrftimes(tbuf, sizeof(tbuf), (utime_t)time(NULL)));
bs->EnableNetworkMessagesDump(*my_config, R_STORAGE);
return handle_stored_connection(bs);
}

Expand Down
4 changes: 0 additions & 4 deletions core/src/stored/dir_cmd.cc
Expand Up @@ -1695,8 +1695,6 @@ static bool ReplicateCmd(JobControlRecord* jcr)
}

jcr->store_bsock = storage_daemon_socket.get();
jcr->store_bsock->EnableNetworkMessagesDump(*my_config,
R_STORAGE);

storage_daemon_socket->fsend("Hello Start Storage Job %s\n", JobName);

Expand Down Expand Up @@ -1786,8 +1784,6 @@ static bool PassiveCmd(JobControlRecord* jcr)
}
}

fd->EnableNetworkMessagesDump(*my_config, R_CLIENT);

jcr->file_bsock = fd;
fd->fsend("Hello Storage calling Start Job %s\n", jcr->Job);
if (!AuthenticateWithFiledaemon(jcr)) {
Expand Down
4 changes: 0 additions & 4 deletions core/src/stored/socket_server.cc
Expand Up @@ -107,7 +107,6 @@ void* HandleConnectionRequest(ConfigurationParser* config, void* arg)
if (sscanf(bs->msg, "Hello Start Job %127s", name) == 1) {
Dmsg1(110, "Got a FD connection at %s\n",
bstrftimes(tbuf, sizeof(tbuf), (utime_t)time(NULL)));
bs->EnableNetworkMessagesDump(*my_config, R_CLIENT);
return HandleFiledConnection(bs, name);
}

Expand All @@ -117,15 +116,12 @@ void* HandleConnectionRequest(ConfigurationParser* config, void* arg)
if (sscanf(bs->msg, "Hello Start Storage Job %127s", name) == 1) {
Dmsg1(110, "Got a SD connection at %s\n",
bstrftimes(tbuf, sizeof(tbuf), (utime_t)time(NULL)));
bs->EnableNetworkMessagesDump(*my_config, R_STORAGE);
return handle_stored_connection(bs, name);
}

Dmsg1(110, "Got a DIR connection at %s\n",
bstrftimes(tbuf, sizeof(tbuf), (utime_t)time(NULL)));

bs->EnableNetworkMessagesDump(*my_config, R_DIRECTOR);

return HandleDirectorConnection(bs);
}

Expand Down

0 comments on commit 1e93088

Please sign in to comment.