librbd: Do not instantiate TrimRequest template class
authorBoris Ranto <branto@redhat.com>
Thu, 7 Dec 2017 23:21:38 +0000 (00:21 +0100)
committerGaudenz Steinlin <gaudenz@debian.org>
Tue, 19 Feb 2019 07:50:12 +0000 (07:50 +0000)
commitcb14ce3dfce1301a088ef68c8b5b2b41387641a1
tree48f72a4ca3ace6156d517f902aae7707704ed2f2
parented1131f7fe92831ecfaf2b390f32be1b2bf73cce
librbd: Do not instantiate TrimRequest template class

We include TrimRequest.cc in librbd tests at two places:
 - operation/test_mock_TrimRequest.cc
 - operation/test_mock_ResizeRequest.cc

That causes linking errors when doing the builds because some of the
instantiated classes are defined twice.

We can fix this by not instantiating the template class in the
TrimReqeust.cc file when including it in the tests.

Signed-off-by: Boris Ranto <branto@redhat.com>
Gbp-Pq: Name armhf-ftbfs.patch
src/test/librbd/operation/test_mock_ResizeRequest.cc