forked from mmccoo/minecraft_mmccoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtable_test.cc.patch
26 lines (24 loc) · 885 Bytes
/
table_test.cc.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/table/table_test.cc b/table/table_test.cc
index 05cb80e..b969447 100644
--- a/table/table_test.cc
+++ b/table/table_test.cc
@@ -828,10 +828,11 @@ TEST(TableTest, ApproximateOffsetOfPlain) {
}
static bool SnappyCompressionSupported() {
+ return true;
#ifdef SNAPPY
std::string out;
Slice in = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
- return port::Snappy_Compress(in.data(), in.size(), &out);
+ //return port::Snappy_Compress(in.data(), in.size(), &out);
#else
return false;
#endif
@@ -854,7 +855,7 @@ TEST(TableTest, ApproximateOffsetOfCompressed) {
KVMap kvmap;
Options options;
options.block_size = 1024;
- options.compressors[0] = new leveldb::SnappyCompressor();
+ //options.compressors[0] = new leveldb::SnappyCompressor();
c.Finish(options, &keys, &kvmap);
// Expected upper and lower bounds of space used by compressible strings.