Skip to content

Commit 41de732

Browse files
fengjicabrminich
andauthored
libfabric: small fix pub_md release time. (#978)
It crashed when running with nixl log at DEBUG level. Signed-off-by: Feng Ji <[email protected]> Co-authored-by: Mikhail Brinskiy <[email protected]>
1 parent f94b5b2 commit 41de732

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/libfabric/libfabric_backend.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,11 +836,11 @@ nixlLibfabricEngine::loadMetadataHelper(const std::vector<uint64_t> &rail_keys,
836836
pub_md->remote_buf_addr_ = reinterpret_cast<uint64_t>(buffer);
837837
pub_md->conn_ = conn;
838838

839-
output = pub_md.release();
840839
NIXL_DEBUG << "Metadata loaded with"
841840
<< " Remote addr: " << (void *)pub_md->remote_buf_addr_ << " Remote keys for "
842841
<< pub_md->rail_remote_key_list_.size() << " rails"
843842
<< " Remote fi_addr: " << pub_md->conn_->rail_remote_addr_list_[0][0];
843+
output = pub_md.release();
844844
return NIXL_SUCCESS;
845845
}
846846

0 commit comments

Comments
 (0)