[Fix Java] Remove duplicate cases in LoggerJniCallback::Logv

Summary: Remove duplicate cases in LoggerJniCallback::Logv and fix complication error

Test Plan: make jclean rocksdbjava jtest -j4

Reviewers: adamretter, andrewkr, sdong

Reviewed By: sdong

Subscribers: andrewkr, dhruba

Differential Revision: https://reviews.facebook.net/D61335
This commit is contained in:
Islam AbdelRahman 2016-07-29 12:47:15 -07:00
parent 8796934af7
commit 7c01d65344

View file

@ -80,9 +80,6 @@ void LoggerJniCallback::Logv(const InfoLogLevel log_level,
case rocksdb::InfoLogLevel::WARN_LEVEL: case rocksdb::InfoLogLevel::WARN_LEVEL:
jlog_level = m_jwarn_level; jlog_level = m_jwarn_level;
break; break;
case rocksdb::InfoLogLevel::WARN_LEVEL:
jlog_level = InfoLogLevelJni::WARN_LEVEL(env);
break;
case rocksdb::InfoLogLevel::ERROR_LEVEL: case rocksdb::InfoLogLevel::ERROR_LEVEL:
jlog_level = m_jerror_level; jlog_level = m_jerror_level;
break; break;
@ -92,9 +89,6 @@ void LoggerJniCallback::Logv(const InfoLogLevel log_level,
case rocksdb::InfoLogLevel::HEADER_LEVEL: case rocksdb::InfoLogLevel::HEADER_LEVEL:
jlog_level = m_jheader_level; jlog_level = m_jheader_level;
break; break;
case rocksdb::InfoLogLevel::HEADER_LEVEL:
jlog_level = InfoLogLevelJni::HEADER_LEVEL(env);
break;
default: default:
jlog_level = m_jfatal_level; jlog_level = m_jfatal_level;
break; break;