| 1 | #include "s3common_writer.h" |
| 2 | |
| 3 | void S3CommonWriter::open(const S3Params& params) { |
| 4 | this->keyWriter.setS3InterfaceService(this->s3InterfaceService); |
| 5 | |
| 6 | if (params.isAutoCompress()) { |
| 7 | this->upstreamWriter = &this->compressWriter; |
| 8 | this->compressWriter.setWriter(&this->keyWriter); |
| 9 | } else { |
| 10 | this->upstreamWriter = &this->keyWriter; |
| 11 | } |
| 12 | |
| 13 | this->upstreamWriter->open(params); |
| 14 | } |
| 15 | |
| 16 | uint64_t S3CommonWriter::write(const char* buf, uint64_t count) { |
| 17 | return this->upstreamWriter->write(buf, count); |
nothing calls this directly
no test coverage detected