]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: use auto keyword
authorKen Iizawa <iizawa.ken@fujitsu.com>
Fri, 19 Feb 2021 02:20:54 +0000 (11:20 +0900)
committerKen Iizawa <iizawa.ken@fujitsu.com>
Fri, 19 Feb 2021 02:20:54 +0000 (11:20 +0900)
Fixes: https://tracker.ceph.com/issues/48182
Signed-off-by: Ken Iizawa <iizawa.ken@fujitsu.com>
src/osd/PrimaryLogPG.cc

index 75f6302b1db8b924494df81946222bdd22af9f68..e084605f77113a0ffe5804bf08ce296bb126eb54 100644 (file)
@@ -10089,7 +10089,7 @@ struct C_gather : public Context {
     if (r == -ECANCELED)
       return;
     std::scoped_lock locker{*pg};
-    map<hobject_t,PrimaryLogPG::CLSGatherOp>::iterator p = pg->cls_gather_ops.find(oid);
+    auto p = pg->cls_gather_ops.find(oid);
     if (p == pg->cls_gather_ops.end()) {
       // op was cancelled
       return;