]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Add CephContext
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Mon, 23 May 2011 17:11:15 +0000 (10:11 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Tue, 24 May 2011 00:28:27 +0000 (17:28 -0700)
commit13aed89e48ae0f2b2c052cda01f500bee1128f5a
tree842da4ea2fbc0dbb54c0b44590fd32b25927cc00
parent1c7b98212d6c0b498f9410ba7ed8daadb4c577ae
Add CephContext

A CephContext represents the context held by a single library user.
There can be multiple CephContexts in the same process.

For daemons and utility programs, there will be only one CephContext.
The CephContext contains the configuration, the dout object, and
anything else that you might want to pass to libcommon with every
function call.

Move some non-config things out of md_config_t and into CephContext.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
43 files changed:
src/Makefile.am
src/cauthtool.cc
src/cconf.cc
src/cfuse.cc
src/cmds.cc
src/cmon.cc
src/common/ceph_context.cc [new file with mode: 0644]
src/common/ceph_context.h [new file with mode: 0644]
src/common/common_init.cc
src/common/common_init.h
src/common/config.cc
src/common/config.h
src/common/debug.cc
src/common/debug.h
src/common/signal.cc
src/cosd.cc
src/csyn.cc
src/dumpjournal.cc
src/dupstore.cc
src/include/ceph/libceph.h
src/include/rados/librgw.h
src/libceph.cc
src/librados-config.cc
src/librados.cc
src/mds/MDS.cc
src/mon/Monitor.cc
src/monmaptool.cc
src/osd/OSD.cc
src/osdmaptool.cc
src/rados.cc
src/rbd.cc
src/rgw/librgw.cc
src/rgw/rgw_admin.cc
src/rgw/rgw_main.cc
src/streamtest.cc
src/test/TestDoutStreambuf.cc
src/test/TestSignalHandlers.cc
src/test/TestTimers.cc
src/test/test_mutate.cc
src/test_trans.cc
src/testmsgr.cc
src/tools/ceph.cc
src/tools/gceph.cc