]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
librbd/migration: fixed missing return statements on stream error path
authorJason Dillaman <dillaman@redhat.com>
Tue, 22 Dec 2020 18:56:59 +0000 (13:56 -0500)
committerJason Dillaman <dillaman@redhat.com>
Sat, 2 Jan 2021 14:26:54 +0000 (09:26 -0500)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/migration/HttpStream.cc
src/librbd/migration/S3Stream.cc

index 7b8f91a325cb5bee9024130fd1cb16a0dc5791c7..fa3cc00320e47c139d7399038d1ff5651a83c342 100644 (file)
@@ -56,6 +56,7 @@ void HttpStream<I>::close(Context* on_finish) {
 
   if (!m_http_client) {
     on_finish->complete(0);
+    return;
   }
 
   m_http_client->close(on_finish);
index 222a08ee3fe969987cf10b59b786e25f47489043..46165f208f9d1a9066754094218acba52d3b2baf 100644 (file)
@@ -128,6 +128,7 @@ void S3Stream<I>::close(Context* on_finish) {
 
   if (!m_http_client) {
     on_finish->complete(0);
+    return;
   }
 
   m_http_client->close(on_finish);