]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
compressor: Update Compressor.cc to work without using namespace
authorAdam C. Emerson <aemerson@redhat.com>
Fri, 29 Mar 2019 01:09:04 +0000 (21:09 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Fri, 29 Mar 2019 14:30:37 +0000 (10:30 -0400)
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/compressor/Compressor.cc

index 3e545d48b44eeb0c1da01434fff028377b681b58..e6faae164f1efd9cdb1df4ffa614cdd3d2d9292d 100644 (file)
@@ -79,8 +79,8 @@ CompressorRef Compressor::create(CephContext *cct, const std::string &type)
 
   CompressorRef cs_impl = NULL;
   std::stringstream ss;
-  PluginRegistry *reg = cct->get_plugin_registry();
-  CompressionPlugin *factory = dynamic_cast<CompressionPlugin*>(reg->get_with_load("compressor", type));
+  auto reg = cct->get_plugin_registry();
+  auto factory = dynamic_cast<ceph::CompressionPlugin*>(reg->get_with_load("compressor", type));
   if (factory == NULL) {
     lderr(cct) << __func__ << " cannot load compressor of type " << type << dendl;
     return NULL;