]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: respect rgw_graceful_stop on realm reload 60923/head
authorMark Kogan <mkogan@ibm.com>
Tue, 3 Dec 2024 12:57:40 +0000 (12:57 +0000)
committerMark Kogan <mkogan@ibm.com>
Tue, 3 Dec 2024 12:57:40 +0000 (12:57 +0000)
Fixes: https://tracker.ceph.com/issues/68352
Signed-off-by: Mark Kogan <mkogan@ibm.com>
src/rgw/rgw_asio_frontend.cc

index 30e1e77fd151ea45f494e1a0d1fdc49dd4d061c8..ebe42d96de9beb8955308dc012d2e5525c51fb27 100644 (file)
@@ -1194,8 +1194,11 @@ void AsioFrontend::pause()
     l.signal.emit(boost::asio::cancellation_type::terminal);
   }
 
-  // close all connections so outstanding requests fail quickly
-  connections.close(ec);
+  const bool graceful_stop{ g_ceph_context->_conf->rgw_graceful_stop };
+  if (!graceful_stop) {
+    // close all connections so outstanding requests fail quickly
+    connections.close(ec);
+  }
 
   // pause and wait until outstanding requests complete
   pause_mutex.lock(ec);