MCPcopy Create free account
hub / github.com/ceph/ceph / seek_to

Method seek_to

src/test/common/ObjectContents.h:44–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 return pos;
43 }
44 void seek_to(uint64_t _pos) {
45 if (pos > _pos ||
46 (iter != parent->seeds.end() && _pos >= iter->first)) {
47 iter = parent->seeds.upper_bound(_pos);
48 --iter;
49 current_state = iter->second;
50 current_val = rand_r(&current_state);
51 pos = iter->first;
52 ++iter;
53 }
54 while (pos < _pos) ++(*this);
55 }
56
57 void seek_to_first() {
58 seek_to(0);

Callers 1

test_object_contentsFunction · 0.80

Calls 2

endMethod · 0.45
upper_boundMethod · 0.45

Tested by

no test coverage detected