]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: Do not instantiate TrimRequest template class 19402/head
authorBoris Ranto <branto@redhat.com>
Thu, 7 Dec 2017 23:21:38 +0000 (00:21 +0100)
committerBoris Ranto <branto@redhat.com>
Tue, 12 Dec 2017 00:08:04 +0000 (01:08 +0100)
commitce2e26d39ac6131cb3782446082ec2737a185517
tree1fe454f06697c0e3199333c1d7321f692d70bc20
parentda7d071654ef77bd53ff9013e7c38cfdf4555d28
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>
src/test/librbd/operation/test_mock_ResizeRequest.cc