journaler: remove the unused prefetch_from member variable

Signed-off-by: Greg Farnum <greg@inktank.com>
This commit is contained in:
Greg Farnum 2013-04-08 14:09:23 -07:00
parent edc9ddfde9
commit 4cb18b5a6f
2 changed files with 1 additions and 4 deletions

View File

@ -64,7 +64,6 @@ void Journaler::set_layout(ceph_file_layout *l)
if (periods < 2)
periods = 2; // we need at least 2 periods to make progress.
fetch_len = layout.fl_stripe_count * layout.fl_object_size * periods;
prefetch_from = fetch_len / 2;
}

View File

@ -194,7 +194,6 @@ private:
uint64_t fetch_len; // how much to read at a time
uint64_t temp_fetch_len;
uint64_t prefetch_from; // how far from end do we read next chunk
// for wait_for_readable()
Context *on_readable;
@ -251,7 +250,7 @@ public:
prezeroing_pos(0), prezero_pos(0), write_pos(0), flush_pos(0), safe_pos(0),
waiting_for_zero(false),
read_pos(0), requested_pos(0), received_pos(0),
fetch_len(0), temp_fetch_len(0), prefetch_from(0),
fetch_len(0), temp_fetch_len(0),
on_readable(0), on_write_error(NULL),
expire_pos(0), trimming_pos(0), trimmed_pos(0)
{
@ -273,7 +272,6 @@ public:
requested_pos = 0;
received_pos = 0;
fetch_len = 0;
prefetch_from = 0;
assert(!on_readable);
expire_pos = 0;
trimming_pos = 0;