Skip to content

Commit

Permalink
Merge pull request ceph#11768 from linuxbox2/xio-build-2
Browse files Browse the repository at this point in the history
xio: fix build
  • Loading branch information
mattbenjamin authored Nov 3, 2016
2 parents bb87921 + c5aa43d commit 2e2ca3b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/msg/xio/XioMessenger.cc
Original file line number Diff line number Diff line change
Expand Up @@ -378,13 +378,13 @@ XioMessenger::XioMessenger(CephContext *cct, entity_name_t name,
/* update class instance count */
nInstances.inc();

loop_con->set_features(features);
loop_con->set_features(CEPH_FEATURES_ALL);

ldout(cct,2) << "Create msgr: " << this << " instance: "
<< nInstances.read() << " type: " << name.type_str()
<< " subtype: " << mname << " nportals: " << get_nportals(cflags)
<< " nconns_per_portal: " << get_nconns_per_portal(cflags) << " features: "
<< features << dendl;
<< " nconns_per_portal: " << get_nconns_per_portal(cflags)
<< dendl;

} /* ctor */

Expand Down
6 changes: 3 additions & 3 deletions src/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -584,14 +584,14 @@ add_executable(unittest_encoding
encoding.cc
)
add_ceph_unittest(unittest_encoding ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_encoding)
target_link_libraries(unittest_encoding common librados pthread rt m ${BLKID_LIBRARIES})
target_link_libraries(unittest_encoding common librados ${XIO_LIBRARY} pthread rt m ${BLKID_LIBRARIES})

# unittest_addrs
add_executable(unittest_addrs
test_addrs.cc
)
add_ceph_unittest(unittest_addrs ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_addrs)
target_link_libraries(unittest_addrs common librados pthread rt m ${BLKID_LIBRARIES})
target_link_libraries(unittest_addrs common librados ${XIO_LIBRARY} pthread rt m ${BLKID_LIBRARIES})

# unittest_workqueue
add_executable(unittest_workqueue
Expand Down Expand Up @@ -689,7 +689,7 @@ add_executable(unittest_xlist
test_xlist.cc
)
add_ceph_unittest(unittest_xlist ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_xlist)
target_link_libraries(unittest_xlist common)
target_link_libraries(unittest_xlist common ${XIO_LIBRARY})

# unittest_arch
add_executable(unittest_arch
Expand Down
3 changes: 2 additions & 1 deletion src/test/messenger/xio_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ int main(int argc, const char **argv)
messenger = new XioMessenger(g_ceph_context,
entity_name_t::MON(-1),
"xio_client",
0 /* nonce */, XIO_ALL_FEATURES, 0 /* cflags */,
0 /* nonce */,
0 /* cflags */,
dstrategy);

// enable timing prints
Expand Down
3 changes: 2 additions & 1 deletion src/test/messenger/xio_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ int main(int argc, const char **argv)
messenger = new XioMessenger(g_ceph_context,
entity_name_t::MON(-1),
"xio_server",
0 /* nonce */, XIO_ALL_FEATURES, 0 /* cflags */,
0 /* nonce */,
0 /* cflags */,
dstrategy);

static_cast<XioMessenger*>(messenger)->set_magic(
Expand Down
2 changes: 1 addition & 1 deletion src/test/objectstore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ endif(HAVE_LIBAIO)
add_executable(unittest_transaction
test_transaction.cc)
add_ceph_unittest(unittest_transaction ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_transaction)
target_link_libraries(unittest_transaction os common)
target_link_libraries(unittest_transaction os common ${XIO_LIBRARY})

# unittest_memstore_clone
add_executable(unittest_memstore_clone
Expand Down

0 comments on commit 2e2ca3b

Please sign in to comment.