Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
d-frey committed Dec 18, 2024
1 parent 9ff0bed commit 29325b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion include/tao/pq/pipeline.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ namespace tao::pq
public:
explicit pipeline( const std::shared_ptr< pq::connection >& connection );

public:
~pipeline() override
{
try {
Expand Down
4 changes: 2 additions & 2 deletions src/lib/pq/pipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ namespace tao::pq
void pipeline::finish()
{
if( m_previous ) {
m_previous->connection()->exit_pipeline_mode();
current_transaction() = m_previous.get();
m_previous.reset();
const auto extend_lifetime = std::move( m_previous );
connection()->exit_pipeline_mode();
}
}

Expand Down

0 comments on commit 29325b4

Please sign in to comment.