From 7da45d65be36d36b880cc55c5036e96c24b53f00 Mon Sep 17 00:00:00 2001 From: Qiaowei Ren Date: Thu, 1 Mar 2018 14:38:11 +0800 Subject: remove ceph code This patch removes initial ceph code, due to license issue. Change-Id: I092d44f601cdf34aed92300fe13214925563081c Signed-off-by: Qiaowei Ren --- src/ceph/doc/dev/context.rst | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 src/ceph/doc/dev/context.rst (limited to 'src/ceph/doc/dev/context.rst') diff --git a/src/ceph/doc/dev/context.rst b/src/ceph/doc/dev/context.rst deleted file mode 100644 index 1a2b2cb..0000000 --- a/src/ceph/doc/dev/context.rst +++ /dev/null @@ -1,20 +0,0 @@ -============= - CephContext -============= - -A CephContext represents a single view of the Ceph cluster. It comes complete -with a configuration, a set of performance counters (PerfCounters), and a -heartbeat map. You can find more information about CephContext in -src/common/ceph_context.h. - -Generally, you will have only one CephContext in your application, called -g_ceph_context. However, in library code, it is possible that the library user -will initialize multiple CephContexts. For example, this would happen if he -called rados_create more than once. - -A ceph context is required to issue log messages. Why is this? Well, without -the CephContext, we would not know which log messages were disabled and which -were enabled. The dout() macro implicitly references g_ceph_context, so it -can't be used in library code. It is fine to use dout and derr in daemons, but -in library code, you must use ldout and lderr, and pass in your own CephContext -object. The compiler will enforce this restriction. -- cgit 1.2.3-korg