]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: remove unused function obj_force_ns 34991/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Tue, 26 May 2020 15:06:56 +0000 (11:06 -0400)
committerNathan Cutler <ncutler@suse.com>
Tue, 26 May 2020 19:22:09 +0000 (21:22 +0200)
Removing the function eliminates a compiler warning.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit 9a1e89173d398bf6e39a431d4b4ef9ab1f20e2bb)

src/rgw/rgw_orphan.cc

index ce4f5f69ac01a5f2f3e73630591a871f22011039..228ed95d419b6bc2f6d6bd5d85bcb852c93715c5 100644 (file)
@@ -59,30 +59,6 @@ static string obj_fingerprint(const string& oid, const char *force_ns = NULL)
   return s.substr(0, i + 1);
 }
 
-
-static string obj_force_ns(const string& oid, const char *force_ns)
-{
-  ssize_t pos = oid.find('_');
-  if (pos < 0) {
-    cerr << "ERROR: object does not have a bucket marker: " << oid << std::endl;
-  }
-
-  string obj_marker = oid.substr(0, pos);
-
-  rgw_obj_key obj;
-  rgw_obj_key::parse_raw_oid(oid.substr(pos + 1), &obj);
-
-  if (obj.ns.empty()) {
-    return oid;
-  }
-
-  obj.set_ns(force_ns);
-
-  string s = obj_marker + obj.get_oid();
-
-  return s;
-}
-
 int RGWOrphanStore::read_job(const string& job_name, RGWOrphanSearchState & state)
 {
   set<string> keys;