summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_common.h
diff options
context:
space:
mode:
authorCasey Bodley <cbodley@users.noreply.github.com>2018-02-22 20:07:55 +0100
committerGitHub <noreply@github.com>2018-02-22 20:07:55 +0100
commit992c19ab673a379896f40b926b563d8c1e3d6034 (patch)
treee134e1f682dcb6514cfd00db1f3c8beb02b668b4 /src/rgw/rgw_common.h
parentMerge pull request #13644 from yehudasa/wip-rgw-ragweed (diff)
parentrgw: parse old rgw_obj with namespace correctly (diff)
downloadceph-992c19ab673a379896f40b926b563d8c1e3d6034.tar.xz
ceph-992c19ab673a379896f40b926b563d8c1e3d6034.zip
Merge pull request #20425 from yehudasa/wip-22982
rgw: parse old rgw_obj with namespace correctly Reviewed-by: Orit Wasserman <owasserm@redhat.com> Reviewed-by: Casey Bodley <cbodley@redhat.com>
Diffstat (limited to 'src/rgw/rgw_common.h')
-rw-r--r--src/rgw/rgw_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rgw/rgw_common.h b/src/rgw/rgw_common.h
index d0c4e4c9f6c..12e81c29d27 100644
--- a/src/rgw/rgw_common.h
+++ b/src/rgw/rgw_common.h
@@ -2062,7 +2062,7 @@ struct rgw_obj {
if (pos < 0) {
throw buffer::error();
}
- key.name = key.name.substr(pos);
+ key.name = key.name.substr(pos + 1);
}
}
} else {