Fix Java to C++ ticker conversions (#4719)

Summary:
Added back `NO_ITERATORS` and moved `NO_ITERATOR_CREATED` to the end of `toCppTickers`.

This is a leftover fix which is needed in addition to a138e351bc to correctly convert java tickers to c++ tickers. a138e351bc only updated `toJavaTickerType` but both `toJavaTickerType` and `toCppTickers` need to be changed.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/4719

Differential Revision: D13208847

Pulled By: sagar0

fbshipit-source-id: 53a42f3d6ffe04034acfde972d73040b92b4c1af
main
Sagar Vemuri 6 years ago committed by Facebook Github Bot
parent 60deb4485e
commit a2dec2ed08
  1. 6
      java/rocksjni/portal.h

@ -3509,7 +3509,7 @@ class TickerTypeJni {
case 0x37: case 0x37:
return rocksdb::Tickers::RATE_LIMIT_DELAY_MILLIS; return rocksdb::Tickers::RATE_LIMIT_DELAY_MILLIS;
case 0x38: case 0x38:
return rocksdb::Tickers::NO_ITERATOR_CREATED; return rocksdb::Tickers::NO_ITERATORS;
case 0x39: case 0x39:
return rocksdb::Tickers::NUMBER_MULTIGET_CALLS; return rocksdb::Tickers::NUMBER_MULTIGET_CALLS;
case 0x3A: case 0x3A:
@ -3587,8 +3587,10 @@ class TickerTypeJni {
case 0x5E: case 0x5E:
return rocksdb::Tickers::NUMBER_MULTIGET_KEYS_FOUND; return rocksdb::Tickers::NUMBER_MULTIGET_KEYS_FOUND;
case 0x5F: case 0x5F:
return rocksdb::Tickers::NO_ITERATOR_DELETED; return rocksdb::Tickers::NO_ITERATOR_CREATED;
case 0x60: case 0x60:
return rocksdb::Tickers::NO_ITERATOR_DELETED;
case 0x61:
return rocksdb::Tickers::TICKER_ENUM_MAX; return rocksdb::Tickers::TICKER_ENUM_MAX;
default: default:

Loading…
Cancel
Save