Skip to content

Commit 422ea28

Browse files
author
Duc Hieu Pham
committed
Avoid circular dependency in includes
Summary: As titled Test Plan: N/A. Just build. Reviewers: igor Reviewed By: igor Differential Revision: https://rockset.phacility.com/D6264
1 parent b2ad4ae commit 422ea28

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

include/rocksdb/pluggable_compaction.h

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
#pragma once
77

88
#include <stdint.h>
9+
910
#include <climits>
1011
#include <vector>
11-
#include <vector>
12-
#include "rocksdb/db.h"
12+
13+
#include "rocksdb/options.h"
1314

1415
namespace rocksdb {
1516

@@ -71,7 +72,7 @@ class PluggableCompactionService {
7172
// Run the specified compaction. The results of the compaction are
7273
// returns in PluggableCompactionResult.
7374
virtual Status Run(const PluggableCompactionParam& job,
74-
PluggableCompactionResult* result) = 0;
75+
PluggableCompactionResult* result) = 0;
7576

7677
// Install files that were generated by a pluggable compaction request into
7778
// the local database.
@@ -91,18 +92,18 @@ struct FilesInOneLevel {
9192

9293
// The definition of a single file created by a pluggable
9394
// compaction request.
94-
struct OutputFile {
95-
std::string pathname;
96-
TableProperties table_properties;
97-
uint64_t file_size;
98-
uint64_t num_entries;
99-
uint64_t num_deletions;
100-
uint64_t raw_key_size;
101-
uint64_t raw_value_size;
102-
std::string smallest_internal_key;
103-
std::string largest_internal_key;
104-
SequenceNumber smallest_seqno;
105-
SequenceNumber largest_seqno;
95+
struct OutputFile {
96+
std::string pathname;
97+
TableProperties table_properties;
98+
uint64_t file_size;
99+
uint64_t num_entries;
100+
uint64_t num_deletions;
101+
uint64_t raw_key_size;
102+
uint64_t raw_value_size;
103+
std::string smallest_internal_key;
104+
std::string largest_internal_key;
105+
SequenceNumber smallest_seqno;
106+
SequenceNumber largest_seqno;
106107
};
107108

108109
} // namespace rocksdb

0 commit comments

Comments
 (0)