]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: get_rest_filter() delete original rest manager
authorYehuda Sadeh <yehuda@redhat.com>
Thu, 25 May 2017 23:55:07 +0000 (16:55 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 30 May 2017 20:27:00 +0000 (13:27 -0700)
When overriding rest manager, delete original.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_sync_module_es.cc

index 623583e3a005ec8093734548cd73a67b93fe9957..443057f811594fea4a878ca3fffadb80a99884b1 100644 (file)
@@ -587,6 +587,7 @@ RGWRESTMgr *RGWElasticSyncModuleInstance::get_rest_filter(int dialect, RGWRESTMg
   if (dialect != RGW_REST_S3) {
     return orig;
   }
+  delete orig;
   return new RGWRESTMgr_MDSearch_S3();
 }