Repository navigation
mds/QuiesceDbEncoding: add inline to work around linker error - #60226
Conversation
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 <[email protected]>
2d22815 to
1a85d4d
Compare
|
jenkins test api |
|
This PR is under test in https://tracker.ceph.com/issues/68859. |
There was a problem hiding this comment.
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. |
Fixes duplicate symbols because every source that includes this header contains a copy:
(and many more)
Checklist