Using dd-stats zerobytes const in the workload
This commit is contained in:
parent
117ed14321
commit
6e684dda35
|
@ -325,9 +325,8 @@ ACTOR Future<Standalone<RangeResultRef>> ddStatsGetRangeActor(Reference<ReadYour
|
|||
KeyRef beginKey = ddMetricsRef.beginKey.withPrefix(ddStatsRange.begin, result.arena());
|
||||
KeyRef endKey = ddMetricsRef.endKey.withPrefix(ddStatsRange.begin, result.arena());
|
||||
ValueRef bytes(result.arena(), std::to_string(ddMetricsRef.shardBytes));
|
||||
ValueRef zeroBytes(result.arena(), std::to_string(0));
|
||||
result.push_back(result.arena(), KeyValueRef(beginKey, bytes));
|
||||
result.push_back(result.arena(), KeyValueRef(endKey, zeroBytes));
|
||||
result.push_back(result.arena(), KeyValueRef(endKey, ddStatsZeroBytes));
|
||||
}
|
||||
return result;
|
||||
} catch (Error& e) {
|
||||
|
|
|
@ -80,7 +80,7 @@ struct DataDistributionMetricsWorkload : KVWorkload {
|
|||
ASSERT(result[i].key.startsWith(ddStatsRange.begin));
|
||||
totalBytes += std::stoi(result[i].value.toString());
|
||||
ASSERT(result[i+1].key.startsWith(ddStatsRange.begin));
|
||||
ASSERT(std::stoi(result[i+1].value.toString()) == 0);
|
||||
ASSERT(result[i+1].value == ddStatsZeroBytes);
|
||||
}
|
||||
self->avgBytes = totalBytes / self->numShards;
|
||||
} catch (Error& e) {
|
||||
|
|
Loading…
Reference in New Issue