]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: minor cleanup
authorYehuda Sadeh <yehuda@redhat.com>
Wed, 3 May 2017 22:08:37 +0000 (15:08 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 30 May 2017 20:26:58 +0000 (13:26 -0700)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_sync_module_es.cc

index bd11cba385efc6b56558e9794afc8115bd5cb9cf..623583e3a005ec8093734548cd73a67b93fe9957 100644 (file)
@@ -51,7 +51,7 @@ class ItemList {
         continue;
       }
 
-      if (entry[entry.size() - 1] == '*') {
+      if (entry.back() == '*') {
         prefixes.insert(entry.substr(0, entry.size() - 1));
         continue;
       }