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>
Sat, 29 Dec 2018 21:08:52 +0000 (21:08 +0000)
commit57b9d6221e395610daf304406ad1edc22268c64b
tree944e6bf0d4bae60c378ba24e586555a915dedd04
parentb8500ac2a7791c352973701b617fbd36e4e178e5
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