]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
PlainTableReader to expose index size to users
authorsdong <siying.d@fb.com>
Wed, 23 Apr 2014 01:31:55 +0000 (18:31 -0700)
committersdong <siying.d@fb.com>
Wed, 23 Apr 2014 02:31:12 +0000 (19:31 -0700)
commit7b37f0d5afd47bc63a8efccbea900faea5a0e4e5
treecfcb197ed22c08a13af059b59f613f716894be24
parent8cd08fdca499c55c13653e94533fa975fedc224d
PlainTableReader to expose index size to users

Summary:
This is a temp solution to expose index sizes to users from PlainTableReader before we persistent them to files.
In this patch, the memory consumption of indexes used by PlainTableReader will be reported as two user defined properties, so that users can monitor them.

Test Plan:
Add a unit test.
make all check`

Reviewers: haobo, ljin

Reviewed By: haobo

CC: nkg-, yhchiang, igor, ljin, dhruba, leveldb
Differential Revision: https://reviews.facebook.net/D18195
db/plain_table_db_test.cc
include/rocksdb/table_properties.h
table/plain_table_reader.cc
table/plain_table_reader.h