]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson: do not use auto in param list of function prototype
authorKefu Chai <kchai@redhat.com>
Sat, 11 Jan 2020 08:22:47 +0000 (16:22 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 11 Jan 2020 15:12:27 +0000 (23:12 +0800)
to silence following warnings from clang 9.0.1:

src/crimson/osd/pg_backend.cc:465:3: error: 'auto' not allowed in function prototype
  auto& store,
  ^~~~

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/osd/pg_backend.cc

index 418245e6c75cb0b1a8917672d6b75c206f21ff61..3394daeaccf6679e6e87174df85cd7ffc6bf9f8a 100644 (file)
@@ -447,10 +447,10 @@ PGBackend::get_attr_errorator::future<ceph::bufferptr> PGBackend::getxattr(
 
 static seastar::future<crimson::os::FuturizedStore::omap_values_t>
 maybe_get_omap_vals_by_keys(
-  auto& store,
-  const auto& coll,
-  const auto& oi,
-  const auto& keys_to_get)
+  crimson::os::FuturizedStore* store,
+  const crimson::os::CollectionRef& coll,
+  const object_info_t& oi,
+  const std::set<std::string>& keys_to_get)
 {
   if (oi.is_omap()) {
     return store->omap_get_values(coll, ghobject_t{oi.soid}, keys_to_get);
@@ -462,10 +462,10 @@ maybe_get_omap_vals_by_keys(
 
 static seastar::future<bool, crimson::os::FuturizedStore::omap_values_t>
 maybe_get_omap_vals(
-  auto& store,
-  const auto& coll,
-  const auto& oi,
-  const auto& start_after)
+  crimson::os::FuturizedStore* store,
+  const crimson::os::CollectionRef& coll,
+  const object_info_t& oi,
+  const std::string& start_after)
 {
   if (oi.is_omap()) {
     return store->omap_get_values(coll, ghobject_t{oi.soid}, start_after);