rocksdb/tools
kailiu 161ab42a8a Make table properties shareable
Summary:
We are going to expose properties of all tables to end users through "some" db interface.
However, current design doesn't naturally fit for this need, which is because:

1. If a table presents in table cache, we cannot simply return the reference to its table properties, because the table may be destroy after compaction (and we don't want to hold the ref of the version).
2. Copy table properties is OK, but it's slow.

Thus in this diff, I change the table reader's interface to return a shared pointer (for const table properties), instead a const refernce.

Test Plan: `make check` passed

Reviewers: haobo, sdong, dhruba

Reviewed By: haobo

CC: leveldb

Differential Revision: https://reviews.facebook.net/D15999
2014-02-07 19:26:49 -08:00
..
shell Fixed typos 2013-11-16 11:21:34 +00:00
blob_store_bench.cc Fix make release 2013-10-31 11:47:22 -07:00
db_crashtest2.py Fixed typos 2013-11-16 11:21:34 +00:00
db_crashtest.py Fixing crashing tests to include iterpercent param 2013-09-20 16:27:22 -07:00
db_repl_stress.cc Fix some 32-bit compile errors 2014-02-03 13:48:30 -08:00
db_stress.cc Moving Some includes from options.h to forward declaration 2014-01-24 17:16:22 -08:00
ldb_test.py Fixed typos 2013-11-16 11:21:34 +00:00
ldb.cc Add appropriate LICENSE and Copyright message. 2013-10-16 17:48:41 -07:00
reduce_levels_test.cc Add appropriate LICENSE and Copyright message. 2013-10-16 17:48:41 -07:00
sst_dump.cc Make table properties shareable 2014-02-07 19:26:49 -08:00