MB-23829: Revert "MB-22695: Add stats for datatypes" 75/76575/3
authorDave Rigby <daver@couchbase.com>
Mon, 10 Apr 2017 17:45:26 +0000 (17:45 +0000)
committerDave Rigby <daver@couchbase.com>
Mon, 10 Apr 2017 19:50:18 +0000 (19:50 +0000)
commit6501c72d2cdf7d154addf1d2f37c0d79c46f73a2
treea4523998f79d9495171921cfe7e65721bf933a21
parent5dd156b38da304a8fc453a875f7f6ad1f9515ec7
MB-23829: Revert "MB-22695: Add stats for datatypes"

Reverting to due null pointer dereference when replacing a non-resident item:

       297      if (v.getDatatype() != itm.getDataType()) {
    -> 298          --datatypeCounts[v.getValue()->getDataType()];
       299          ++datatypeCounts[itm.getDataType()];
       300      }
    (lldb) p v
    (StoredValue) $0 = {
      value = {
        value = 0x0000000000000000
      }

This reverts commit e4606e8f50797e40d3a9f7931c1e45a070f82002.

Change-Id: I5998e2eaadedf897192d0fb8aeb184ac85c4bf8f
Reviewed-on: http://review.couchbase.org/76575
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>
src/hash_table.cc
src/hash_table.h
src/kv_bucket.cc
src/vb_count_visitor.cc
src/vb_count_visitor.h
tests/ep_testsuite.cc
tests/module_tests/stats_test.cc