Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dependence on using namespace: Build of 'common' through osdc/Objecter.cc #27255

Merged
merged 130 commits into from
Apr 2, 2019

Conversation

adamemerson
Copy link
Contributor

Go through a chunk of stuff removing the need for 'using namespace std' and 'using namespace ceph'.

Partial, of course, but getting Objecter.cc to compile means that the most commonly used headers used by targets in common should be cleaned up. Others are free to continue with further installments, if they wish.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
@adamemerson adamemerson force-pushed the wip-names-common-through-objecter branch from 7431d49 to 251a4aa Compare March 29, 2019 14:30
@tchaikov
Copy link
Contributor

tchaikov commented Apr 1, 2019

retest this please.

Copy link
Contributor

@tchaikov tchaikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm in general aside from just a couple of nits/questions.

src/auth/AuthServiceHandler.h Show resolved Hide resolved
src/auth/AuthServiceHandler.h Show resolved Hide resolved
@@ -1,4 +1,4 @@
// -*- mode:C; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

src/include/encoding.h Show resolved Hide resolved
#include <stdio.h>

#include <cstdint>
#include <cstdio>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@tchaikov tchaikov merged commit 53c66a1 into ceph:master Apr 2, 2019
@adamemerson adamemerson deleted the wip-names-common-through-objecter branch April 2, 2019 15:08
@sebastian-philipp
Copy link
Contributor

Is https://jenkins.ceph.com/job/ceph-pull-requests/560/console related?

Failed to load class: cas (/home/jenkins-build/build/workspace/ceph-pull-requests/build/lib/libcls_cas.so): /home/jenkins-build/build/workspace/ceph-pull-requests/build/lib/libcls_cas.so: undefined symbol: cls_cxx_chunk_write_and_set(void*, int, int, ceph::buffer::v14_2_0::list*, unsigned int, ceph::buffer::v14_2_0::list*, int)
Failed to load class: cephfs (/home/jenkins-build/build/workspace/ceph-pull-requests/build/lib/libcls_cephfs.so): /home/jenkins-build/build/workspace/ceph-pull-requests/build/lib/libcls_cephfs.so: undefined symbol: typeinfo for PGLSFilter
Failed to load class: hello (/home/jenkins-build/build/workspace/ceph-pull-requests/build/lib/libcls_hello.so): /home/jenkins-build/build/workspace/ceph-pull-requests/build/lib/libcls_hello.so: undefined symbol: typeinfo for PGLSFilter
Failed to load class: log (/home/jenkins-build/build/workspace/ceph-pull-requests/build/lib/libcls_log.so): /home/jenkins-build/build/workspace/ceph-pull-requests/build/lib/libcls_log.so: undefined symbol: cls_cxx_map_read_header(void*, ceph::buffer::v14_2_0::list*)
Failed to load class: rgw (/home/jenkins-build/build/workspace/ceph-pull-requests/build/lib/libcls_rgw.so): /home/jenkins-build/build/workspace/ceph-pull-requests/build/lib/libcls_rgw.so: undefined symbol: cls_cxx_map_read_header(void*, ceph::buffer::v14_2_0::list*)
Failed to load class: user (/home/jenkins-build/build/workspace/ceph-pull-requests/build/lib/libcls_user.so): /home/jenkins-build/build/workspace/ceph-pull-requests/build/lib/libcls_user.so: undefined symbol: cls_cxx_map_read_header(void*, ceph::buffer::v14_2_0::list*)
Failed to load class: version (/home/jenkins-build/build/workspace/ceph-pull-requests/build/lib/libcls_version.so): /home/jenkins-build/build/workspace/ceph-pull-requests/build/lib/libcls_version.so: undefined symbol: cls_gen_rand_base64(char*, int)

?

@tchaikov
Copy link
Contributor

tchaikov commented May 27, 2019

@sebastian-philipp i don't think it's related. i don't even think "Failed to load class" fails the test(s). the reason we have these error messages is that src/test/librados_test_stub/LibradosTestStub.cc only offers the minimum set of APIs used by class objects to support librbd related test.

@tchaikov
Copy link
Contributor

#28250 is posted to address these annoying warnings.

xiexingguo added a commit to xiexingguo/ceph that referenced this pull request Jun 5, 2019
This works as a good supplement of ceph#27563.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit 5d69526)

Conflicts:
	slight conflict from the "Remove dependence on 'using namespac'" change,
        see ceph#27255
xiexingguo added a commit to xiexingguo/ceph that referenced this pull request Jun 10, 2019
Currently there are various ways to set no{up,down,in,out} flags,
by osd, by crush node, or by device class.

Use traditional is_no{up,down,in,out} helper to catch-all,
and add special wrappers for certain internal consumers.

This way osd won't ignore the noup flag set by the new crush node,
device class, or any future sources.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit 9d11a3a)

Conflicts:
        slight conflict from the "Remove dependence on 'using namespac'" change,
        see ceph#27255
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants