]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
LFNIndex: Fix lfn parsing for hobjects with keys
authorSamuel Just <rexludorum@gmail.com>
Fri, 2 Sep 2011 23:46:57 +0000 (16:46 -0700)
committerSamuel Just <samuel.just@dreamhost.com>
Sat, 3 Sep 2011 00:08:29 +0000 (17:08 -0700)
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
src/os/LFNIndex.cc

index 126a4b9edbdb4579d7c43ee5206e685bf33bba0a..dc133bb48b2b60d60555576576d1659228120a56 100644 (file)
@@ -793,7 +793,7 @@ bool LFNIndex::lfn_parse_object_name(const string &long_name, hobject_t *out) {
   for (; end != long_name.end() && *end != '_'; ++end);
   if (end == long_name.end())
     return false;
-  if (!append_unescaped(current, end, &(out->oid.name)))
+  if (!append_unescaped(current, end, &(out->key)))
     return false;
 
   current = ++end;