fix: do not crash PutObjectTags when node is down (#10940)

fixes #10939
This commit is contained in:
Harshavardhana
2020-11-20 09:10:48 -08:00
committed by GitHub
parent 251c1ef6da
commit 95675b0c9a
3 changed files with 35 additions and 30 deletions

View File

@@ -11,11 +11,15 @@ func _() {
_ = x[NoneAction-0]
_ = x[DeleteAction-1]
_ = x[DeleteVersionAction-2]
_ = x[TransitionAction-3]
_ = x[TransitionVersionAction-4]
_ = x[DeleteRestoredAction-5]
_ = x[DeleteRestoredVersionAction-6]
}
const _Action_name = "NoneActionDeleteActionDeleteVersionAction"
const _Action_name = "NoneActionDeleteActionDeleteVersionActionTransitionActionTransitionVersionActionDeleteRestoredActionDeleteRestoredVersionAction"
var _Action_index = [...]uint8{0, 10, 22, 41}
var _Action_index = [...]uint8{0, 10, 22, 41, 57, 80, 100, 127}
func (i Action) String() string {
if i < 0 || i >= Action(len(_Action_index)-1) {