We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 325f098 commit 19a8a6eCopy full SHA for 19a8a6e
pkg/kv/kvserver/store_remove_replica.go
@@ -75,12 +75,8 @@ func (s *Store) removeInitializedReplicaRaftMuLocked(
75
if !rep.IsInitialized() {
76
return nil, errors.AssertionFailedf("cannot remove uninitialized replica %s", rep)
77
}
78
-
79
- if opts.InsertPlaceholder {
80
- if opts.DestroyData {
81
- return nil, errors.AssertionFailedf("cannot specify both InsertPlaceholder and DestroyData")
82
- }
83
+ if opts.InsertPlaceholder && opts.DestroyData {
+ return nil, errors.AssertionFailedf("cannot specify both InsertPlaceholder and DestroyData")
84
85
86
// Run sanity checks and on success commit to the removal by setting the
0 commit comments