]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osdmap, mon: switch the params of print_tree() 4727/head
authorKefu Chai <kchai@redhat.com>
Wed, 20 May 2015 06:24:48 +0000 (14:24 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 28 May 2015 08:39:35 +0000 (01:39 -0700)
commita808c814b029dd7ddf4bb70a485bad94fbbdfb61
treefd3da1344d006e124fe8e573525ac9d7ef8af232
parentaa62dcbe39f003c599688f6a3003c746773fdd86
osdmap, mon: switch the params of print_tree()

* change from
    print_tree(ostream*, Formatter*)
  to
    print_tree(Formatter*, ostream*)
  this is more consistent with other map's print
  functions. e.g.
    MDSMap::print_summary(Formatter *f, ostream *out)
* and in print_tree(Formatter* f, ostream* os),
  - `f` and `os` will be mutual exclusive.
  - will assert(0) if both of them are NULL.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/OSDMonitor.cc
src/osd/OSDMap.cc
src/osd/OSDMap.h
src/tools/osdmaptool.cc