]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: more constness to spg_t
authorKefu Chai <kchai@redhat.com>
Sat, 30 Jan 2016 08:48:08 +0000 (16:48 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 25 Feb 2016 04:40:17 +0000 (12:40 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/osd/osd_types.h

index 84770d3e92afb199adeb95936d573c6aa87bd4a1..740d33997ecca89f5fea5f4e9a7ee95d7b198138 100644 (file)
@@ -497,7 +497,7 @@ struct spg_t {
     DECODE_FINISH(bl);
   }
 
-  hobject_t make_temp_object(const string& name) {
+  hobject_t make_temp_object(const string& name) const {
     return hobject_t(object_t(name), "", CEPH_NOSNAP,
                     pgid.ps(),
                     hobject_t::POOL_TEMP_START - pgid.pool(), "");