From: Yehuda Sadeh Date: Wed, 3 May 2017 22:08:37 +0000 (-0700) Subject: rgw: minor cleanup X-Git-Tag: ses5-milestone6~9^2~3^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a42aad051c7a8b5b7f9629ad3fc60830d685fb77;p=ceph.git rgw: minor cleanup Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_sync_module_es.cc b/src/rgw/rgw_sync_module_es.cc index bd11cba385e..623583e3a00 100644 --- a/src/rgw/rgw_sync_module_es.cc +++ b/src/rgw/rgw_sync_module_es.cc @@ -51,7 +51,7 @@ class ItemList { continue; } - if (entry[entry.size() - 1] == '*') { + if (entry.back() == '*') { prefixes.insert(entry.substr(0, entry.size() - 1)); continue; }