]> git-server-git.apps.pok.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>
Fri, 9 Oct 2015 10:20:31 +0000 (03:20 -0700)
commit040e390d29fc68dcefe48c59cccacf6258c6f690
tree6c1210c1e57fa86f5281088de18089e5e8775741
parent629b631488f044150422371ac77dfc005f3de1bc
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