[thin_show_dups] remove variable number of mems per chunks.
Too slow and not used.
This commit is contained in:
@@ -5,19 +5,5 @@ using namespace thin_provisioning;
|
||||
|
||||
//----------------------------------------------------------------
|
||||
|
||||
uint8_t
|
||||
chunk::operator[](uint64_t n) const
|
||||
{
|
||||
std::deque<mem>::const_iterator it;
|
||||
for (it = mem_.begin(); it != mem_.end(); it++) {
|
||||
uint64_t mem_len = it->end - it->begin;
|
||||
if (n > mem_len)
|
||||
n -= mem_len;
|
||||
else
|
||||
return it->begin[n];
|
||||
}
|
||||
|
||||
throw runtime_error("chunk out of bounds");
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user