summaryrefslogtreecommitdiff
path: root/cli/cli_repack.cpp
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2015-11-07 23:01:11 +0000
committerJose Fonseca <jfonseca@vmware.com>2015-11-07 23:10:49 +0000
commitce2ed37ea5cd77515018fc2085377c13205c151b (patch)
treedd2d95b0a1f59a7762ecdf69e640e5281436e638 /cli/cli_repack.cpp
parent4839bda495aecb8ce78744faa69eb395c161a355 (diff)
common: Split trace writing from reading.
Diffstat (limited to 'cli/cli_repack.cpp')
-rw-r--r--cli/cli_repack.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/cli_repack.cpp b/cli/cli_repack.cpp
index 5d122fa6..3e908f54 100644
--- a/cli/cli_repack.cpp
+++ b/cli/cli_repack.cpp
@@ -32,6 +32,7 @@
#include "cli.hpp"
#include "trace_file.hpp"
+#include "trace_ostream.hpp"
static const char *synopsis = "Repack a trace file with Snappy compression.";
@@ -65,7 +66,7 @@ repack(const char *inFileName, const char *outFileName)
return 1;
}
- trace::File *outFile = trace::File::createForWrite(outFileName);
+ trace::OutStream *outFile = trace::createSnappyStream(outFileName);
if (!outFile) {
delete inFile;
return 1;