Skip to content

Commit 061879d

Browse files
committed
fix: remove Status::OK() references
1 parent 042a96c commit 061879d

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/iceberg/manifest/manifest_writer.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class ICEBERG_EXPORT ManifestWriter {
4141

4242
/// \brief Write the entry that all its fields are populated correctly.
4343
/// \param entry Manifest entry to write.
44-
/// \return Status::OK() if entry was written successfully
44+
/// \return Status indicating success or failure
4545
/// \note All other write entry variants delegate to this method after populating
4646
/// the necessary fields.
4747
Status WriteEntry(const ManifestEntry& entry);
@@ -50,7 +50,7 @@ class ICEBERG_EXPORT ManifestWriter {
5050
///
5151
/// \param file an added data file
5252
/// \param data_sequence_number a data sequence number for the file
53-
/// \return Status::OK() if the entry was written successfully
53+
/// \return Status indicating success or failure
5454
/// \note The entry's snapshot ID will be this manifest's snapshot ID. The entry's data
5555
/// sequence number will be the provided data sequence number. The entry's file sequence
5656
/// number will be assigned at commit.
@@ -67,7 +67,7 @@ class ICEBERG_EXPORT ManifestWriter {
6767
/// file was added)
6868
/// \param file_sequence_number a file sequence number (assigned when the file was
6969
/// added)
70-
/// \return Status::OK() if the entry was written successfully
70+
/// \return Status indicating success or failure
7171
/// \note The original data and file sequence numbers, snapshot ID, which were assigned
7272
/// at commit, must be preserved when adding an existing entry.
7373
Status WriteExistingEntry(std::shared_ptr<DataFile> file, int64_t file_snapshot_id,
@@ -83,7 +83,7 @@ class ICEBERG_EXPORT ManifestWriter {
8383
/// file was added)
8484
/// \param file_sequence_number a file sequence number (assigned when the file was
8585
/// added)
86-
/// \return Status::OK() if the entry was written successfully
86+
/// \return Status indicating success or failure
8787
/// \note The entry's snapshot ID will be this manifest's snapshot ID. However, the
8888
/// original data and file sequence numbers of the file must be preserved when the file
8989
/// is marked as deleted.
@@ -95,7 +95,7 @@ class ICEBERG_EXPORT ManifestWriter {
9595

9696
/// \brief Write manifest entries to file.
9797
/// \param entries Already populated manifest entries to write.
98-
/// \return Status::OK() if all entries were written successfully
98+
/// \return Status indicating success or failure
9999
Status AddAll(const std::vector<ManifestEntry>& entries);
100100

101101
/// \brief Close writer and flush to storage.
@@ -191,12 +191,12 @@ class ICEBERG_EXPORT ManifestListWriter {
191191

192192
/// \brief Write manifest file to manifest list file.
193193
/// \param file Manifest file to write.
194-
/// \return Status::OK() if file was written successfully
194+
/// \return Status indicating success or failure
195195
Status Add(const ManifestFile& file);
196196

197197
/// \brief Write manifest file list to manifest list file.
198198
/// \param files Manifest file list to write.
199-
/// \return Status::OK() if all files were written successfully
199+
/// \return Status indicating success or failure
200200
Status AddAll(const std::vector<ManifestFile>& files);
201201

202202
/// \brief Close writer and flush to storage.

src/iceberg/manifest/rolling_manifest_writer.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class ICEBERG_EXPORT RollingManifestWriter {
5454
/// \brief Add an added entry for a file.
5555
///
5656
/// \param file a data file
57-
/// \return Status::OK() if the entry was written successfully
57+
/// \return Status indicating success or failure
5858
/// \note The entry's snapshot ID will be this manifest's snapshot ID. The
5959
/// entry's data sequence number will be the provided data sequence number.
6060
/// The entry's file sequence number will be assigned at commit.
@@ -69,7 +69,7 @@ class ICEBERG_EXPORT RollingManifestWriter {
6969
/// the file was added)
7070
/// \param file_sequence_number a file sequence number (assigned when the file
7171
/// was added)
72-
/// \return Status::OK() if the entry was written successfully
72+
/// \return Status indicating success or failure
7373
/// \note The original data and file sequence numbers, snapshot ID, which were
7474
/// assigned at commit, must be preserved when adding an existing entry.
7575
Status WriteExistingEntry(std::shared_ptr<DataFile> file, int64_t file_snapshot_id,
@@ -83,7 +83,7 @@ class ICEBERG_EXPORT RollingManifestWriter {
8383
/// the file was added)
8484
/// \param file_sequence_number a file sequence number (assigned when the file
8585
/// was added)
86-
/// \return Status::OK() if the entry was written successfully
86+
/// \return Status indicating success or failure
8787
/// \note The entry's snapshot ID will be this manifest's snapshot ID. However,
8888
/// the original data and file sequence numbers of the file must be preserved
8989
/// when the file is marked as deleted.

0 commit comments

Comments
 (0)