Skip to content

mds/QuiesceDbEncoding: add inline to work around linker error#60226

Merged
batrick merged 1 commit intoceph:mainfrom
MaxKellermann:QuiesceDbEncoding_inline
Nov 13, 2024
Merged

mds/QuiesceDbEncoding: add inline to work around linker error#60226
batrick merged 1 commit intoceph:mainfrom
MaxKellermann:QuiesceDbEncoding_inline

Conversation

@MaxKellermann
Copy link
Member

Fixes duplicate symbols because every source that includes this header contains a copy:

 mold: error: duplicate symbol: lib/libceph-common.a(Message.cc.o): lib/libmds.a(MDSRankQuiesce.cc.o): encode(QuiesceDbVersion const&, ceph::buffer::v15_2_0::list&, unsigned long)
 mold: error: duplicate symbol: lib/libceph-common.a(Message.cc.o): lib/libmds.a(MDSRankQuiesce.cc.o): encode(QuiesceState const&, ceph::buffer::v15_2_0::list&, unsigned long)

(and many more)

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)

@github-actions github-actions bot added the cephfs Ceph File System label Oct 9, 2024
Fixes duplicate symbols because every source that includes this header
contains a copy:

 mold: error: duplicate symbol: lib/libceph-common.a(Message.cc.o): lib/libmds.a(MDSRankQuiesce.cc.o): encode(QuiesceDbVersion const&, ceph::buffer::v15_2_0::list&, unsigned long)
 mold: error: duplicate symbol: lib/libceph-common.a(Message.cc.o): lib/libmds.a(MDSRankQuiesce.cc.o): encode(QuiesceState const&, ceph::buffer::v15_2_0::list&, unsigned long)

(and many more)

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
@MaxKellermann MaxKellermann force-pushed the QuiesceDbEncoding_inline branch from 2d22815 to 1a85d4d Compare October 10, 2024 18:34
@vshankar vshankar requested a review from a team October 16, 2024 05:58
@vshankar
Copy link
Contributor

jenkins test api

@batrick
Copy link
Member

batrick commented Nov 6, 2024

This PR is under test in https://tracker.ceph.com/issues/68859.

Copy link
Contributor

@rishabh-d-dave rishabh-d-dave left a comment

Choose a reason for hiding this comment

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

LGTM but @batrick won't it be nice to backport this small change? It would serve two purposes: fix warning for older releases as well as ensure future backport PRs don't have to hit and resolve a conflict due to absence backporting of this patch.

@batrick
Copy link
Member

batrick commented Nov 13, 2024

@batrick
Copy link
Member

batrick commented Nov 13, 2024

LGTM but @batrick won't it be nice to backport this small change? It would serve two purposes: fix warning for older releases as well as ensure future backport PRs don't have to hit and resolve a conflict due to absence backporting of this patch.

Yes, generally. But it's not necessary (IMO) if it's not breaking release branches for our testing purposes.

@batrick batrick merged commit 5fc414b into ceph:main Nov 13, 2024
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