]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/osd_internal_types: bring moving semantics to ObjectState.
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Sat, 11 May 2019 01:41:52 +0000 (21:41 -0400)
committerKefu Chai <kchai@redhat.com>
Sun, 12 May 2019 14:40:43 +0000 (22:40 +0800)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/osd/osd_internal_types.h

index 97d444e7ea74b3862636eed50c32fd67a1516e10..d539d04658b3391478e79a8216e476e3e6add828 100644 (file)
@@ -35,6 +35,8 @@ struct ObjectState {
 
   ObjectState(const object_info_t &oi_, bool exists_)
     : oi(oi_), exists(exists_) {}
+  ObjectState(object_info_t &&oi_, bool exists_)
+    : oi(std::move(oi_)), exists(exists_) {}
 };
 
 typedef std::shared_ptr<ObjectContext> ObjectContextRef;