Bug fix in KV byte counts.

This commit is contained in:
Steve Atherton 2020-08-18 17:58:57 -07:00
parent 090241f0df
commit d53e6cf687
1 changed files with 2 additions and 2 deletions

View File

@ -3095,8 +3095,8 @@ public:
// durable once the following call to commit() returns
void set(KeyValueRef keyValue) {
++g_redwoodMetrics.opSet;
++g_redwoodMetrics.opSetKeyBytes += keyValue.key.size();
++g_redwoodMetrics.opSetValueBytes += keyValue.value.size();
g_redwoodMetrics.opSetKeyBytes += keyValue.key.size();
g_redwoodMetrics.opSetValueBytes += keyValue.value.size();
m_pBuffer->insert(keyValue.key).mutation().setBoundaryValue(m_pBuffer->copyToArena(keyValue.value));
}