]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osdc/Objecter: move LingerOp's ctor to .cc
authorKefu Chai <kchai@redhat.com>
Fri, 23 Jul 2021 16:09:58 +0000 (00:09 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 23 Jul 2021 17:01:57 +0000 (01:01 +0800)
so the linkage of fmt::fmt does not spill out to other compilation
units.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/osdc/Objecter.cc
src/osdc/Objecter.h

index a20384e8870a7880d3dd66c075f9cdaba1dbac87..6bfebfcc95f883400eb0e50474ab690409c65f60 100644 (file)
@@ -4716,6 +4716,13 @@ void Objecter::handle_command_reply(MCommandReply *m)
   m->put();
 }
 
+Objecter::LingerOp::LingerOp(Objecter *o, uint64_t linger_id)
+  : objecter(o),
+    linger_id(linger_id),
+    watch_lock(ceph::make_shared_mutex(
+                fmt::format("LingerOp::watch_lock #{}", linger_id)))
+{}
+
 void Objecter::submit_command(CommandOp *c, ceph_tid_t *ptid)
 {
   shunique_lock sul(rwlock, ceph::acquire_unique);
index 4846c1534f4531151179410771c750476ba749a2..d349ef20670ae81dde483eae9d4c74167598990a 100644 (file)
@@ -2310,11 +2310,7 @@ public:
       watch_pending_async.pop_front();
     }
 
-    explicit LingerOp(Objecter *o, uint64_t linger_id)
-      : objecter(o), linger_id(linger_id),
-       watch_lock(ceph::make_shared_mutex(
-                    fmt::format("LingerOp::watch_lock #{}", linger_id))) {}
-
+    LingerOp(Objecter *o, uint64_t linger_id);
     const LingerOp& operator=(const LingerOp& r) = delete;
     LingerOp(const LingerOp& o) = delete;