summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2021-01-31 03:25:46 +0100
committerGitHub <noreply@github.com>2021-01-31 03:25:46 +0100
commit11a8d4fbd5e460f4f015706294138c1ffa3469ea (patch)
treee472738600ca5857f709c2a1f1de2f2acf15e364
parentMerge pull request #39116 from tchaikov/wip-crimson-pgstat (diff)
parentlibradosstriper: make default layout const and static (diff)
downloadceph-11a8d4fbd5e460f4f015706294138c1ffa3469ea.tar.xz
ceph-11a8d4fbd5e460f4f015706294138c1ffa3469ea.zip
Merge pull request #39151 from batrick/radosstriper-refactor
libradosstriper: make default layout const and static Reviewed-by: Kefu Chai <kchai@redhat.com>
-rw-r--r--src/libradosstriper/RadosStriperImpl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libradosstriper/RadosStriperImpl.cc b/src/libradosstriper/RadosStriperImpl.cc
index 60fafd46396..01e893dea06 100644
--- a/src/libradosstriper/RadosStriperImpl.cc
+++ b/src/libradosstriper/RadosStriperImpl.cc
@@ -104,7 +104,7 @@
#define RADOS_OBJECT_EXTENSION_FORMAT ".%016llx"
/// default object layout
-struct ceph_file_layout default_file_layout = {
+static const struct ceph_file_layout default_file_layout = {
init_le32(1<<22), // fl_stripe_unit
init_le32(1), // fl_stripe_count
init_le32(1<<22), // fl_object_size