Skip to content

Commit

Permalink
Fix unused warning, remove Incr_batch_size dead code in sync
Browse files Browse the repository at this point in the history
There is a Wunused-private-field warning:
```
In file included from /kvrocks/utils/kvrocks2redis/sync.cc:21:
/kvrocks/utils/kvrocks2redis/sync.h:61:5: warning: private field 'incr_state_' is not used [-Wunused-private-field]
  } incr_state_ = Incr_batch_size;
    ^
1 warning generated.
```
  • Loading branch information
enjoy-binbin committed Jan 26, 2024
1 parent 4bb6954 commit 0df6d4f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions utils/kvrocks2redis/sync.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,6 @@ class Sync {
int next_seq_fd_;
rocksdb::SequenceNumber next_seq_ = static_cast<rocksdb::SequenceNumber>(0);

// Internal states managed by IncrementBatchLoop procedure
enum IncrementBatchLoopState {
Incr_batch_size,
Incr_batch_data,
} incr_state_ = Incr_batch_size;

Status incrementBatchLoop();

Status tryCatchUpWithPrimary();
Expand Down

0 comments on commit 0df6d4f

Please sign in to comment.