Skip to content

Commit 48d6cf3

Browse files
committed
Make locks unique_ptr; shared_ptr not needed
1 parent 34a55c5 commit 48d6cf3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/HTTPFile.hh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ class HTTPFile : public XrdOssDF {
113113
// Expected size of the completed object; -1 if unknown.
114114
off_t m_object_size{-1};
115115
off_t m_write_offset{0};
116-
std::shared_ptr<std::mutex> m_write_lk;
116+
std::unique_ptr<std::mutex> m_write_lk;
117117
// The in-progress operation for a multi-part upload; its lifetime may be
118118
// spread across multiple write calls.
119-
std::shared_ptr<HTTPUpload> m_write_op;
119+
std::unique_ptr<HTTPUpload> m_write_op;
120120

121121
size_t content_length;
122122
time_t last_modified;

0 commit comments

Comments
 (0)