Skip to content

Commit

Permalink
Merge pull request #6710 from jdurgin/wip-13877
Browse files Browse the repository at this point in the history
test: use sequential journal_tid for object cacher test

Reported-by: Kefu Chai <kchai@redhat.com>
  • Loading branch information
tchaikov committed Nov 27, 2015
2 parents 9ab820f + 9331e03 commit 4189380
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/osdc/object_cacher_stress.cc
Expand Up @@ -72,6 +72,7 @@ int stress_test(uint64_t num_ops, uint64_t num_objs,
SnapContext snapc;
ceph::buffer::ptr bp(max_op_len);
ceph::bufferlist bl;
uint64_t journal_tid = 0;
bp.zero();
bl.append(bp);

Expand Down Expand Up @@ -110,7 +111,7 @@ int stress_test(uint64_t num_ops, uint64_t num_objs,
assert(r == 0);
} else {
ObjectCacher::OSDWrite *wr = obc.prepare_write(snapc, bl, utime_t(), 0,
random());
++journal_tid);
wr->extents.push_back(op->extent);
lock.Lock();
obc.writex(wr, &object_set, NULL);
Expand Down

0 comments on commit 4189380

Please sign in to comment.