summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/mmap_v1/compress.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/storage/mmap_v1/compress.cpp')
-rw-r--r--src/mongo/db/storage/mmap_v1/compress.cpp36
1 files changed, 17 insertions, 19 deletions
diff --git a/src/mongo/db/storage/mmap_v1/compress.cpp b/src/mongo/db/storage/mmap_v1/compress.cpp
index bae8bc5acba..8f8dce527ed 100644
--- a/src/mongo/db/storage/mmap_v1/compress.cpp
+++ b/src/mongo/db/storage/mmap_v1/compress.cpp
@@ -36,24 +36,22 @@
namespace mongo {
- void rawCompress(const char* input,
- size_t input_length,
- char* compressed,
- size_t* compressed_length)
- {
- snappy::RawCompress(input, input_length, compressed, compressed_length);
- }
-
- size_t maxCompressedLength(size_t source_len) {
- return snappy::MaxCompressedLength(source_len);
- }
-
- size_t compress(const char* input, size_t input_length, std::string* output) {
- return snappy::Compress(input, input_length, output);
- }
-
- bool uncompress(const char* compressed, size_t compressed_length, std::string* uncompressed) {
- return snappy::Uncompress(compressed, compressed_length, uncompressed);
- }
+void rawCompress(const char* input,
+ size_t input_length,
+ char* compressed,
+ size_t* compressed_length) {
+ snappy::RawCompress(input, input_length, compressed, compressed_length);
+}
+
+size_t maxCompressedLength(size_t source_len) {
+ return snappy::MaxCompressedLength(source_len);
+}
+size_t compress(const char* input, size_t input_length, std::string* output) {
+ return snappy::Compress(input, input_length, output);
+}
+
+bool uncompress(const char* compressed, size_t compressed_length, std::string* uncompressed) {
+ return snappy::Uncompress(compressed, compressed_length, uncompressed);
+}
}