Skip to content

Commit fff7139

Browse files
committed
test/unittest_deferred: debug code
Add code to print times; this is for make check arm64. Signed-off-by: Adam Kupczyk <[email protected]>
1 parent f2b33bc commit fff7139

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/test/objectstore/test_deferred.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ void create_deferred_and_terminate() {
130130

131131
// small deferred writes over object
132132
// and complete overwrite of previous one
133+
lgeneric_dout(g_ceph_context, 0) << "starting object IO" << dendl;
134+
cout << "starting object IO" << std::endl;
133135
bufferlist bl_8_bytes;
134136
bl_8_bytes.append("abcdefgh");
135137
std::atomic<size_t> deferred_counter{0};
@@ -147,7 +149,9 @@ void create_deferred_and_terminate() {
147149
ghobject_t hoid_m(hobject_t(oid_m, "", CEPH_NOSNAP, 1, poolid, ""));
148150
t.write(cid, hoid_m, 4096 * o, bl_64K.length(), bl_64K);
149151

150-
t.register_on_commit(new C_do_action([&] {
152+
t.register_on_commit(new C_do_action([=, &deferred_counter] {
153+
lgeneric_dout(g_ceph_context, 0) << "completed id=" << o << dendl;
154+
cout << "completed id=" << o << std::endl;
151155
if (++deferred_counter == object_count) {
152156
exit(0);
153157
}

0 commit comments

Comments
 (0)