RocksDB static build
Make file changes to download and build the dependencies
.Load the shared library when RocksDB is initialized
Reverting import change
Addressing review comments
fixed #303: replace %ld with % PRId64
remove unused variable
Merge pull request #305 from Liuchang0812/fix-logging

remove unused variable
Merge pull request #304 from Liuchang0812/fix-check

fixed #303: replace %ld with % PRId64
Update logging.cc

fix cast style to cpp static_cast
Update logging.cc
remove cast, replace %llu with % PRIu64
Merge pull request #306 from Liuchang0812/fix_cast

Update logging.cc
dont create backup_input if compaction filter v2 is not used

Summary:
Compaction creates backup_input iterator even though it only needed
when compaction filter v2 is enabled

Test Plan: make all check

Reviewers: sdong, yhchiang, igor

Reviewed By: igor

Subscribers: leveldb

Differential Revision: https://reviews.facebook.net/D23769
change target_file_size_base to uint64_t

Summary: It contrains the file size to be 4G max with int

Test Plan:
tried to grep instance and made sure other related variables are also
uint64

Reviewers: sdong, yhchiang, igor

Reviewed By: igor

Subscribers: leveldb

Differential Revision: https://reviews.facebook.net/D23697
WriteBatchWithIndex to allow different Comparators for different column families

Summary:
Previously, one single column family is given to WriteBatchWithIndex to index keys for all column families. An extra map from column family ID to comparator is maintained which can override the default comparator given in the constructor. A WriteBatchWithIndex::SetComparatorForCF() is added for user to add comparators per column family.

Also move more codes into anonymous namespace.

Test Plan: Add a unit test

Reviewers: ljin, igor

Reviewed By: igor

Subscribers: dhruba, leveldb, yhchiang

Differential Revision: https://reviews.facebook.net/D23355
Fix release compile
Fix compile
Remove TODO for checking index checksums
re-enable BlockBasedTable::SetupForCompaction()

Summary:
It was commented out in D22545 by accident. Keep the option in
ImmutableOptions for now. I can make it dynamic in
https://reviews.facebook.net/D23349

Test Plan: make release

Reviewers: sdong, yhchiang, igor

Reviewed By: igor

Subscribers: leveldb

Differential Revision: https://reviews.facebook.net/D23865
Addressing review comments
Addressing review comments (adding a env variable to override temp directory)