Skip to content

Commit 6b46f78

Browse files
committed
Merge pull request XRPLF#248 from wankai/master
BlockBuilder typo improvement
2 parents 536e997 + 528a11c commit 6b46f78

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

table/block_builder.h

+5-6
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@ class Comparator;
2020

2121
class BlockBuilder {
2222
public:
23-
BlockBuilder(int block_builder, const Comparator* comparator);
24-
23+
BlockBuilder(const BlockBuilder&) = delete;
24+
void operator=(const BlockBuilder&) = delete;
25+
26+
BlockBuilder(int block_restart_interval, const Comparator* comparator);
27+
2528
// Reset the contents as if the BlockBuilder was just constructed.
2629
void Reset();
2730

@@ -55,10 +58,6 @@ class BlockBuilder {
5558
int counter_; // Number of entries emitted since restart
5659
bool finished_; // Has Finish() been called?
5760
std::string last_key_;
58-
59-
// No copying allowed
60-
BlockBuilder(const BlockBuilder&);
61-
void operator=(const BlockBuilder&);
6261
};
6362

6463
} // namespace rocksdb

0 commit comments

Comments
 (0)