fix compile for optimistic_transaction_test under ROCKSDB_LITE

Summary: Adding a main for optimistic_transaction_test that report that it was skipped when using ROCKSDB_LITE

Test Plan: optimistic_transaction_test

Reviewers: yhchiang, sdong, igor, anthony

Reviewed By: anthony

Subscribers: dhruba

Differential Revision: https://reviews.facebook.net/D41979
This commit is contained in:
Islam AbdelRahman 2015-07-13 16:42:40 -07:00
parent 8bca83e5dd
commit e8e8c90499

View File

@ -843,4 +843,14 @@ int main(int argc, char** argv) {
return RUN_ALL_TESTS();
}
#endif // ROCKSDB_LITE
#else
#include <stdio.h>
int main(int argc, char** argv) {
fprintf(
stderr,
"SKIPPED as optimistic_transaction is not supported in ROCKSDB_LITE\n");
return 0;
}
#endif // !ROCKSDB_LITE