Skip to content

Commit

Permalink
Add KafkaWritableFile::GetFileSize() override
Browse files Browse the repository at this point in the history
  • Loading branch information
rockeet committed Oct 6, 2024
1 parent a01782e commit 3ccf399
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cloud/aws/aws_kafka.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ class KafkaWritableFile : public CloudLogWritableFile {
IOStatus Flush(const IOOptions& io_opts, IODebugContext* dbg) override;
IOStatus LogDelete() override;

uint64_t GetFileSize(const IOOptions&, IODebugContext*) override {
return current_offset_;
}

private:
IOStatus ProduceRaw(const std::string& operation_name, const Slice& message);

Expand Down

0 comments on commit 3ccf399

Please sign in to comment.