Skip to content

Commit

Permalink
Merge pull request #29147 from pdvian/wip-40267-nautilus
Browse files Browse the repository at this point in the history
nautilus: common: OutputDataSocket retakes mutex on error path

Reviewed-by: Casey Bodley <cbodley@redhat.com>
  • Loading branch information
yuriw committed Jul 30, 2019
2 parents 5a60c42 + 43e3920 commit 655ba2c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/common/OutputDataSocket.cc
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ int OutputDataSocket::dump_data(int fd)
ret = safe_write(fd, delim.c_str(), delim.length());
}
if (ret < 0) {
std::scoped_lock lock(m_lock);
for (; iter != l.end(); ++iter) {
bufferlist& bl = *iter;
data.push_back(bl);
Expand Down

0 comments on commit 655ba2c

Please sign in to comment.