Skip to content
Snippets Groups Projects
Commit 45866057 authored by Sergey Yakubov's avatar Sergey Yakubov
Browse files

rollback libfabric changes

parent cef85655
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,7 @@ functionNotFoundError:
#ifdef LIBFABRIC_ENABLED
// Global fabric function map
extern FabricFunctionMap& gffm() {
static FabricFunctionMap gffm_;
static FabricFunctionMap gffm_ {};
return gffm_;
}
#endif
......@@ -69,7 +69,7 @@ FabricAddress FabricClientImpl::AddServerAddress(const std::string& serverAddres
return FI_ADDR_NOTAVAIL;
}
FabricHandshakePayload handshake;
FabricHandshakePayload handshake {};
strcpy(handshake.hostnameAndPort, GetAddress().c_str());
RawSend(addrIdx, &handshake, sizeof(handshake), error);
if (*error) {
......
......@@ -124,10 +124,10 @@ void FabricContextImpl::InitCommon(const std::string& networkIpHint, uint16_t se
FI_OK(gffm().fi_fabric(fabric_info_->fabric_attr, &fabric_, nullptr));
FI_OK(fi_domain(fabric_, fabric_info_, &domain_, nullptr));
fi_av_attr av_attr;
fi_av_attr av_attr{};
FI_OK(fi_av_open(domain_, &av_attr, &address_vector_, nullptr));
fi_cq_attr cq_attr;
fi_cq_attr cq_attr{};
if (serverListenPort) {
// The server must know where the data is coming from(FI_SOURCE) and what the MessageId(TAG) is.
cq_attr.format = FI_CQ_FORMAT_TAGGED;
......@@ -145,7 +145,7 @@ void FabricContextImpl::InitCommon(const std::string& networkIpHint, uint16_t se
}
std::string FabricContextImpl::GetAddress() const {
sockaddr_in sin;
sockaddr_in si{};
size_t sin_size = sizeof(sin);
fi_getname(&(endpoint_->fid), &sin, &sin_size);
......@@ -227,7 +227,7 @@ void FabricContextImpl::StopBackgroundThreads() {
void FabricContextImpl::CompletionThread() {
Error error;
fi_cq_tagged_entry entry;
fi_cq_tagged_entry entry{};
FabricAddress tmpAddress;
while(background_threads_running_ && !error) {
ssize_t ret;
......@@ -261,7 +261,7 @@ void FabricContextImpl::CompletionThread() {
}
void FabricContextImpl::CompletionThreadHandleErrorAvailable(Error* error) {
fi_cq_err_entry errEntry;
fi_cq_err_entry errEntry{};
ssize_t ret = fi_cq_readerr(completion_queue_, &errEntry, 0);
if (ret != 1) {
*error = ErrorFromFabricInternal("Unknown error while fi_cq_readerr", ret);
......
......@@ -12,7 +12,7 @@ class FabricServerImpl;
class FabricHandshakeAcceptingTask : public FabricSelfRequeuingTask {
private:
FabricHandshakePayload handshake_payload_;
FabricHandshakePayload handshake_payload_{};
public:
explicit FabricHandshakeAcceptingTask(FabricServerImpl* server);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment