]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os: Build target 'common' without using namespace in headers 33796/head
authorAdam C. Emerson <aemerson@redhat.com>
Sat, 7 Mar 2020 09:33:31 +0000 (04:33 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Sat, 7 Mar 2020 09:33:31 +0000 (04:33 -0500)
Part of a changeset to allow building all of 'common' without relying
on 'using namespace std' or 'using namespace ceph' at toplevel in
headers.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/os/ObjectStore.h
src/os/Transaction.h

index c51cd24e50992d799e9e302477e761d77b3afa67..41dd45f38e32b8003b50e97e19222810675905a6 100644 (file)
 #ifndef CEPH_OBJECTSTORE_H
 #define CEPH_OBJECTSTORE_H
 
+#include "include/buffer.h"
 #include "include/common_fwd.h"
 #include "include/Context.h"
-#include "include/buffer.h"
-#include "include/types.h"
+#include "include/interval_set.h"
 #include "include/stringify.h"
+#include "include/types.h"
+
 #include "osd/osd_types.h"
 #include "common/TrackedOp.h"
 #include "common/WorkQueue.h"
@@ -514,7 +516,7 @@ public:
      uint32_t op_flags = 0) {
      int total = 0;
      for (auto p = m.begin(); p != m.end(); p++) {
-       bufferlist t;
+       ceph::buffer::list t;
        int r = read(c, oid, p.get_start(), p.get_len(), t, op_flags);
        if (r < 0)
          return r;
@@ -554,7 +556,7 @@ public:
     CollectionHandle &c,
     const ghobject_t& oid,
     const string& section_name,
-    Formatter *f) {
+    ceph::Formatter *f) {
     return -ENOTSUP;
   }
 
index 88c5fac6c7a484024f51ea122875c908f93e9d86..fe4f25313febda18048719198ca1fb14a12ba17f 100644 (file)
@@ -5,8 +5,10 @@
 
 #include <map>
 
+#include "include/Context.h"
 #include "include/int_types.h"
 #include "include/buffer.h"
+
 #include "osd/osd_types.h"
 
 #define OPS_PER_PTR 32
@@ -362,7 +364,7 @@ public:
   }
   static Context *collect_all_contexts(
     Transaction& t) {
-    list<Context*> contexts;
+    std::list<Context*> contexts;
     contexts.splice(contexts.end(), t.on_applied);
     contexts.splice(contexts.end(), t.on_commit);
     contexts.splice(contexts.end(), t.on_applied_sync);