]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: use GMT time for the object name of hitsets
authorKefu Chai <kchai@redhat.com>
Fri, 5 Jun 2015 13:06:48 +0000 (21:06 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 24 Mar 2016 11:54:50 +0000 (19:54 +0800)
commit039240418060c9a49298dacc0478772334526dce
tree993af2e8c0fbf20a0e0d3f1d82d8d4bc5ec3d968
parent0418943c6ef8c9649a58003444daeb4b6224fbab
osd: use GMT time for the object name of hitsets

* bump the encoding version of pg_hit_set_info_t to 2, so we can
  tell if the corresponding hit_set is named using localtime or
  GMT
* bump the encoding version of pg_pool_t to 20, so we can know
  if a pool is using GMT to name the hit_set archive or not. and
  we can tell if current cluster allows OSDs not support GMT
  mode or not.
* add an option named `osd_pool_use_gmt_hitset`. if enabled,
  the cluster will try to use GMT mode when creating a new pool
  if all the the up OSDs support GMT mode. if any of the
  pools in the cluster is using GMT mode, then only OSDs
  supporting GMT mode are allowed to join the cluster.

Fixes: #9732
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 42f8c5daad16aa849a0b99871d50161673c0c370)

 Conflicts:
src/include/ceph_features.h
src/osd/ReplicatedPG.cc
src/osd/osd_types.cc
src/osd/osd_types.h
fill pg_pool_t with default settings in master branch.
src/common/config_opts.h
src/include/ceph_features.h
src/mon/OSDMonitor.cc
src/osd/ReplicatedPG.cc
src/osd/ReplicatedPG.h
src/osd/osd_types.cc
src/osd/osd_types.h