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

common: buffer/assert minor fixes #6990

Merged
merged 3 commits into from Dec 22, 2015
Merged

Conversation

mattbenjamin
Copy link
Contributor

Fixes some small issues on master (12/20):

  1. an xio-specific buffer.h fix
  2. a new narrowing conversion compile warning in XioMessenger.cc
  3. a change to include assert.h in Dispatcher.h, as it is now used in the interface

As noted in the commit message, possibly this suggests a need for a FastDispatcher interface, which could declare ms_fast_dispatch pure virtual.

Likely an update missed from PR ceph#6686.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
The inline ms_fast_dispatch implementation calls assert, which
puts asset.h in the interface.

The fact that many Dispatcher descendants don't implement
ms_fast_dispatch prevents making the method pure virtual--which
suggests that maybe there is a need for a FastDispatcher
interface that inherits Dispatcher and introduces ms_fast_dispatch
and related?

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
@tchaikov
Copy link
Contributor

lgtm.

tchaikov added a commit that referenced this pull request Dec 22, 2015
Fixes some small issues

Reviewed-by: Kefu Chai <kchai@redhat.com>
@tchaikov tchaikov merged commit 7b3e5bf into ceph:master Dec 22, 2015
@tchaikov tchaikov self-assigned this Dec 22, 2015
@ghost ghost changed the title Master fixes common: buffer/assert minor fixes Feb 10, 2016
@ghost ghost added the common label Feb 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants