Skip to content

Commit

Permalink
Temporary bugfix. Related to #110.
Browse files Browse the repository at this point in the history
  • Loading branch information
sagarjha committed Mar 8, 2019
1 parent dac25b7 commit 9404117
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion derecho/group_impl.h
Expand Up @@ -321,10 +321,11 @@ void Group<ReplicatedTypes...>::receive_objects(const std::set<std::pair<subgrou
std::size_t buffer_size;
bool success = leader_socket.get().read(buffer_size);
assert_always(success);
char buffer[buffer_size];
char* buffer = new char[buffer_size];
success = leader_socket.get().read(buffer, buffer_size);
assert_always(success);
subgroup_object.receive_object(buffer);
delete[] buffer;
}
whenlog(logger->debug("Done receiving all Replicated Objects from subgroup leaders"));
}
Expand Down

0 comments on commit 9404117

Please sign in to comment.