]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd_types: define max in eversion_t::max() to static 17453/head
authoryang.wang <yang.wang@easystack.cn>
Mon, 4 Sep 2017 12:20:11 +0000 (20:20 +0800)
committeryang.wang <yang.wang@easystack.cn>
Tue, 5 Sep 2017 10:50:11 +0000 (18:50 +0800)
commit80ee9c2a2b209c373626cb7bd4bd6e887026d8b3
tree37afc18069aa75acd16e882aeb321b6a53d41ca7
parentb1e31f5e3f7b673e9f2bbd39dc3a04c2bdd479b0
osd_types: define max in eversion_t::max() to static

max in eversion_t::max() can be static, no need to re constructs
it every time when calling eversion_t::max(), and max can be
constructed using eversion_t(epoch_t e, version_t v), it better than
firstly construct it by eversion_t() and then reassign it to (-1,-1)

Change-Id: I85de5685024e61ebc2d1816b0969be67bdaf45f5
Signed-off-by: yang.wang yang.wang@easystack.cn
src/osd/osd_types.h