github.com/minio/minio@v0.0.0-20240328213742-3f72439b8a27/cmd/background-newdisks-heal-ops_gen.go (about) 1 package cmd 2 3 // Code generated by github.com/tinylib/msgp DO NOT EDIT. 4 5 import ( 6 "github.com/tinylib/msgp/msgp" 7 ) 8 9 // DecodeMsg implements msgp.Decodable 10 func (z *healingTracker) DecodeMsg(dc *msgp.Reader) (err error) { 11 var field []byte 12 _ = field 13 var zb0001 uint32 14 zb0001, err = dc.ReadMapHeader() 15 if err != nil { 16 err = msgp.WrapError(err) 17 return 18 } 19 for zb0001 > 0 { 20 zb0001-- 21 field, err = dc.ReadMapKeyPtr() 22 if err != nil { 23 err = msgp.WrapError(err) 24 return 25 } 26 switch msgp.UnsafeString(field) { 27 case "ID": 28 z.ID, err = dc.ReadString() 29 if err != nil { 30 err = msgp.WrapError(err, "ID") 31 return 32 } 33 case "PoolIndex": 34 z.PoolIndex, err = dc.ReadInt() 35 if err != nil { 36 err = msgp.WrapError(err, "PoolIndex") 37 return 38 } 39 case "SetIndex": 40 z.SetIndex, err = dc.ReadInt() 41 if err != nil { 42 err = msgp.WrapError(err, "SetIndex") 43 return 44 } 45 case "DiskIndex": 46 z.DiskIndex, err = dc.ReadInt() 47 if err != nil { 48 err = msgp.WrapError(err, "DiskIndex") 49 return 50 } 51 case "Path": 52 z.Path, err = dc.ReadString() 53 if err != nil { 54 err = msgp.WrapError(err, "Path") 55 return 56 } 57 case "Endpoint": 58 z.Endpoint, err = dc.ReadString() 59 if err != nil { 60 err = msgp.WrapError(err, "Endpoint") 61 return 62 } 63 case "Started": 64 z.Started, err = dc.ReadTime() 65 if err != nil { 66 err = msgp.WrapError(err, "Started") 67 return 68 } 69 case "LastUpdate": 70 z.LastUpdate, err = dc.ReadTime() 71 if err != nil { 72 err = msgp.WrapError(err, "LastUpdate") 73 return 74 } 75 case "ObjectsTotalCount": 76 z.ObjectsTotalCount, err = dc.ReadUint64() 77 if err != nil { 78 err = msgp.WrapError(err, "ObjectsTotalCount") 79 return 80 } 81 case "ObjectsTotalSize": 82 z.ObjectsTotalSize, err = dc.ReadUint64() 83 if err != nil { 84 err = msgp.WrapError(err, "ObjectsTotalSize") 85 return 86 } 87 case "ItemsHealed": 88 z.ItemsHealed, err = dc.ReadUint64() 89 if err != nil { 90 err = msgp.WrapError(err, "ItemsHealed") 91 return 92 } 93 case "ItemsFailed": 94 z.ItemsFailed, err = dc.ReadUint64() 95 if err != nil { 96 err = msgp.WrapError(err, "ItemsFailed") 97 return 98 } 99 case "BytesDone": 100 z.BytesDone, err = dc.ReadUint64() 101 if err != nil { 102 err = msgp.WrapError(err, "BytesDone") 103 return 104 } 105 case "BytesFailed": 106 z.BytesFailed, err = dc.ReadUint64() 107 if err != nil { 108 err = msgp.WrapError(err, "BytesFailed") 109 return 110 } 111 case "Bucket": 112 z.Bucket, err = dc.ReadString() 113 if err != nil { 114 err = msgp.WrapError(err, "Bucket") 115 return 116 } 117 case "Object": 118 z.Object, err = dc.ReadString() 119 if err != nil { 120 err = msgp.WrapError(err, "Object") 121 return 122 } 123 case "ResumeItemsHealed": 124 z.ResumeItemsHealed, err = dc.ReadUint64() 125 if err != nil { 126 err = msgp.WrapError(err, "ResumeItemsHealed") 127 return 128 } 129 case "ResumeItemsFailed": 130 z.ResumeItemsFailed, err = dc.ReadUint64() 131 if err != nil { 132 err = msgp.WrapError(err, "ResumeItemsFailed") 133 return 134 } 135 case "ResumeBytesDone": 136 z.ResumeBytesDone, err = dc.ReadUint64() 137 if err != nil { 138 err = msgp.WrapError(err, "ResumeBytesDone") 139 return 140 } 141 case "ResumeBytesFailed": 142 z.ResumeBytesFailed, err = dc.ReadUint64() 143 if err != nil { 144 err = msgp.WrapError(err, "ResumeBytesFailed") 145 return 146 } 147 case "QueuedBuckets": 148 var zb0002 uint32 149 zb0002, err = dc.ReadArrayHeader() 150 if err != nil { 151 err = msgp.WrapError(err, "QueuedBuckets") 152 return 153 } 154 if cap(z.QueuedBuckets) >= int(zb0002) { 155 z.QueuedBuckets = (z.QueuedBuckets)[:zb0002] 156 } else { 157 z.QueuedBuckets = make([]string, zb0002) 158 } 159 for za0001 := range z.QueuedBuckets { 160 z.QueuedBuckets[za0001], err = dc.ReadString() 161 if err != nil { 162 err = msgp.WrapError(err, "QueuedBuckets", za0001) 163 return 164 } 165 } 166 case "HealedBuckets": 167 var zb0003 uint32 168 zb0003, err = dc.ReadArrayHeader() 169 if err != nil { 170 err = msgp.WrapError(err, "HealedBuckets") 171 return 172 } 173 if cap(z.HealedBuckets) >= int(zb0003) { 174 z.HealedBuckets = (z.HealedBuckets)[:zb0003] 175 } else { 176 z.HealedBuckets = make([]string, zb0003) 177 } 178 for za0002 := range z.HealedBuckets { 179 z.HealedBuckets[za0002], err = dc.ReadString() 180 if err != nil { 181 err = msgp.WrapError(err, "HealedBuckets", za0002) 182 return 183 } 184 } 185 case "HealID": 186 z.HealID, err = dc.ReadString() 187 if err != nil { 188 err = msgp.WrapError(err, "HealID") 189 return 190 } 191 case "ItemsSkipped": 192 z.ItemsSkipped, err = dc.ReadUint64() 193 if err != nil { 194 err = msgp.WrapError(err, "ItemsSkipped") 195 return 196 } 197 case "BytesSkipped": 198 z.BytesSkipped, err = dc.ReadUint64() 199 if err != nil { 200 err = msgp.WrapError(err, "BytesSkipped") 201 return 202 } 203 default: 204 err = dc.Skip() 205 if err != nil { 206 err = msgp.WrapError(err) 207 return 208 } 209 } 210 } 211 return 212 } 213 214 // EncodeMsg implements msgp.Encodable 215 func (z *healingTracker) EncodeMsg(en *msgp.Writer) (err error) { 216 // map header, size 25 217 // write "ID" 218 err = en.Append(0xde, 0x0, 0x19, 0xa2, 0x49, 0x44) 219 if err != nil { 220 return 221 } 222 err = en.WriteString(z.ID) 223 if err != nil { 224 err = msgp.WrapError(err, "ID") 225 return 226 } 227 // write "PoolIndex" 228 err = en.Append(0xa9, 0x50, 0x6f, 0x6f, 0x6c, 0x49, 0x6e, 0x64, 0x65, 0x78) 229 if err != nil { 230 return 231 } 232 err = en.WriteInt(z.PoolIndex) 233 if err != nil { 234 err = msgp.WrapError(err, "PoolIndex") 235 return 236 } 237 // write "SetIndex" 238 err = en.Append(0xa8, 0x53, 0x65, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78) 239 if err != nil { 240 return 241 } 242 err = en.WriteInt(z.SetIndex) 243 if err != nil { 244 err = msgp.WrapError(err, "SetIndex") 245 return 246 } 247 // write "DiskIndex" 248 err = en.Append(0xa9, 0x44, 0x69, 0x73, 0x6b, 0x49, 0x6e, 0x64, 0x65, 0x78) 249 if err != nil { 250 return 251 } 252 err = en.WriteInt(z.DiskIndex) 253 if err != nil { 254 err = msgp.WrapError(err, "DiskIndex") 255 return 256 } 257 // write "Path" 258 err = en.Append(0xa4, 0x50, 0x61, 0x74, 0x68) 259 if err != nil { 260 return 261 } 262 err = en.WriteString(z.Path) 263 if err != nil { 264 err = msgp.WrapError(err, "Path") 265 return 266 } 267 // write "Endpoint" 268 err = en.Append(0xa8, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74) 269 if err != nil { 270 return 271 } 272 err = en.WriteString(z.Endpoint) 273 if err != nil { 274 err = msgp.WrapError(err, "Endpoint") 275 return 276 } 277 // write "Started" 278 err = en.Append(0xa7, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64) 279 if err != nil { 280 return 281 } 282 err = en.WriteTime(z.Started) 283 if err != nil { 284 err = msgp.WrapError(err, "Started") 285 return 286 } 287 // write "LastUpdate" 288 err = en.Append(0xaa, 0x4c, 0x61, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65) 289 if err != nil { 290 return 291 } 292 err = en.WriteTime(z.LastUpdate) 293 if err != nil { 294 err = msgp.WrapError(err, "LastUpdate") 295 return 296 } 297 // write "ObjectsTotalCount" 298 err = en.Append(0xb1, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74) 299 if err != nil { 300 return 301 } 302 err = en.WriteUint64(z.ObjectsTotalCount) 303 if err != nil { 304 err = msgp.WrapError(err, "ObjectsTotalCount") 305 return 306 } 307 // write "ObjectsTotalSize" 308 err = en.Append(0xb0, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x53, 0x69, 0x7a, 0x65) 309 if err != nil { 310 return 311 } 312 err = en.WriteUint64(z.ObjectsTotalSize) 313 if err != nil { 314 err = msgp.WrapError(err, "ObjectsTotalSize") 315 return 316 } 317 // write "ItemsHealed" 318 err = en.Append(0xab, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x48, 0x65, 0x61, 0x6c, 0x65, 0x64) 319 if err != nil { 320 return 321 } 322 err = en.WriteUint64(z.ItemsHealed) 323 if err != nil { 324 err = msgp.WrapError(err, "ItemsHealed") 325 return 326 } 327 // write "ItemsFailed" 328 err = en.Append(0xab, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64) 329 if err != nil { 330 return 331 } 332 err = en.WriteUint64(z.ItemsFailed) 333 if err != nil { 334 err = msgp.WrapError(err, "ItemsFailed") 335 return 336 } 337 // write "BytesDone" 338 err = en.Append(0xa9, 0x42, 0x79, 0x74, 0x65, 0x73, 0x44, 0x6f, 0x6e, 0x65) 339 if err != nil { 340 return 341 } 342 err = en.WriteUint64(z.BytesDone) 343 if err != nil { 344 err = msgp.WrapError(err, "BytesDone") 345 return 346 } 347 // write "BytesFailed" 348 err = en.Append(0xab, 0x42, 0x79, 0x74, 0x65, 0x73, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64) 349 if err != nil { 350 return 351 } 352 err = en.WriteUint64(z.BytesFailed) 353 if err != nil { 354 err = msgp.WrapError(err, "BytesFailed") 355 return 356 } 357 // write "Bucket" 358 err = en.Append(0xa6, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74) 359 if err != nil { 360 return 361 } 362 err = en.WriteString(z.Bucket) 363 if err != nil { 364 err = msgp.WrapError(err, "Bucket") 365 return 366 } 367 // write "Object" 368 err = en.Append(0xa6, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74) 369 if err != nil { 370 return 371 } 372 err = en.WriteString(z.Object) 373 if err != nil { 374 err = msgp.WrapError(err, "Object") 375 return 376 } 377 // write "ResumeItemsHealed" 378 err = en.Append(0xb1, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x48, 0x65, 0x61, 0x6c, 0x65, 0x64) 379 if err != nil { 380 return 381 } 382 err = en.WriteUint64(z.ResumeItemsHealed) 383 if err != nil { 384 err = msgp.WrapError(err, "ResumeItemsHealed") 385 return 386 } 387 // write "ResumeItemsFailed" 388 err = en.Append(0xb1, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64) 389 if err != nil { 390 return 391 } 392 err = en.WriteUint64(z.ResumeItemsFailed) 393 if err != nil { 394 err = msgp.WrapError(err, "ResumeItemsFailed") 395 return 396 } 397 // write "ResumeBytesDone" 398 err = en.Append(0xaf, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x44, 0x6f, 0x6e, 0x65) 399 if err != nil { 400 return 401 } 402 err = en.WriteUint64(z.ResumeBytesDone) 403 if err != nil { 404 err = msgp.WrapError(err, "ResumeBytesDone") 405 return 406 } 407 // write "ResumeBytesFailed" 408 err = en.Append(0xb1, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64) 409 if err != nil { 410 return 411 } 412 err = en.WriteUint64(z.ResumeBytesFailed) 413 if err != nil { 414 err = msgp.WrapError(err, "ResumeBytesFailed") 415 return 416 } 417 // write "QueuedBuckets" 418 err = en.Append(0xad, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73) 419 if err != nil { 420 return 421 } 422 err = en.WriteArrayHeader(uint32(len(z.QueuedBuckets))) 423 if err != nil { 424 err = msgp.WrapError(err, "QueuedBuckets") 425 return 426 } 427 for za0001 := range z.QueuedBuckets { 428 err = en.WriteString(z.QueuedBuckets[za0001]) 429 if err != nil { 430 err = msgp.WrapError(err, "QueuedBuckets", za0001) 431 return 432 } 433 } 434 // write "HealedBuckets" 435 err = en.Append(0xad, 0x48, 0x65, 0x61, 0x6c, 0x65, 0x64, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73) 436 if err != nil { 437 return 438 } 439 err = en.WriteArrayHeader(uint32(len(z.HealedBuckets))) 440 if err != nil { 441 err = msgp.WrapError(err, "HealedBuckets") 442 return 443 } 444 for za0002 := range z.HealedBuckets { 445 err = en.WriteString(z.HealedBuckets[za0002]) 446 if err != nil { 447 err = msgp.WrapError(err, "HealedBuckets", za0002) 448 return 449 } 450 } 451 // write "HealID" 452 err = en.Append(0xa6, 0x48, 0x65, 0x61, 0x6c, 0x49, 0x44) 453 if err != nil { 454 return 455 } 456 err = en.WriteString(z.HealID) 457 if err != nil { 458 err = msgp.WrapError(err, "HealID") 459 return 460 } 461 // write "ItemsSkipped" 462 err = en.Append(0xac, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x53, 0x6b, 0x69, 0x70, 0x70, 0x65, 0x64) 463 if err != nil { 464 return 465 } 466 err = en.WriteUint64(z.ItemsSkipped) 467 if err != nil { 468 err = msgp.WrapError(err, "ItemsSkipped") 469 return 470 } 471 // write "BytesSkipped" 472 err = en.Append(0xac, 0x42, 0x79, 0x74, 0x65, 0x73, 0x53, 0x6b, 0x69, 0x70, 0x70, 0x65, 0x64) 473 if err != nil { 474 return 475 } 476 err = en.WriteUint64(z.BytesSkipped) 477 if err != nil { 478 err = msgp.WrapError(err, "BytesSkipped") 479 return 480 } 481 return 482 } 483 484 // MarshalMsg implements msgp.Marshaler 485 func (z *healingTracker) MarshalMsg(b []byte) (o []byte, err error) { 486 o = msgp.Require(b, z.Msgsize()) 487 // map header, size 25 488 // string "ID" 489 o = append(o, 0xde, 0x0, 0x19, 0xa2, 0x49, 0x44) 490 o = msgp.AppendString(o, z.ID) 491 // string "PoolIndex" 492 o = append(o, 0xa9, 0x50, 0x6f, 0x6f, 0x6c, 0x49, 0x6e, 0x64, 0x65, 0x78) 493 o = msgp.AppendInt(o, z.PoolIndex) 494 // string "SetIndex" 495 o = append(o, 0xa8, 0x53, 0x65, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78) 496 o = msgp.AppendInt(o, z.SetIndex) 497 // string "DiskIndex" 498 o = append(o, 0xa9, 0x44, 0x69, 0x73, 0x6b, 0x49, 0x6e, 0x64, 0x65, 0x78) 499 o = msgp.AppendInt(o, z.DiskIndex) 500 // string "Path" 501 o = append(o, 0xa4, 0x50, 0x61, 0x74, 0x68) 502 o = msgp.AppendString(o, z.Path) 503 // string "Endpoint" 504 o = append(o, 0xa8, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74) 505 o = msgp.AppendString(o, z.Endpoint) 506 // string "Started" 507 o = append(o, 0xa7, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64) 508 o = msgp.AppendTime(o, z.Started) 509 // string "LastUpdate" 510 o = append(o, 0xaa, 0x4c, 0x61, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65) 511 o = msgp.AppendTime(o, z.LastUpdate) 512 // string "ObjectsTotalCount" 513 o = append(o, 0xb1, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74) 514 o = msgp.AppendUint64(o, z.ObjectsTotalCount) 515 // string "ObjectsTotalSize" 516 o = append(o, 0xb0, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x53, 0x69, 0x7a, 0x65) 517 o = msgp.AppendUint64(o, z.ObjectsTotalSize) 518 // string "ItemsHealed" 519 o = append(o, 0xab, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x48, 0x65, 0x61, 0x6c, 0x65, 0x64) 520 o = msgp.AppendUint64(o, z.ItemsHealed) 521 // string "ItemsFailed" 522 o = append(o, 0xab, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64) 523 o = msgp.AppendUint64(o, z.ItemsFailed) 524 // string "BytesDone" 525 o = append(o, 0xa9, 0x42, 0x79, 0x74, 0x65, 0x73, 0x44, 0x6f, 0x6e, 0x65) 526 o = msgp.AppendUint64(o, z.BytesDone) 527 // string "BytesFailed" 528 o = append(o, 0xab, 0x42, 0x79, 0x74, 0x65, 0x73, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64) 529 o = msgp.AppendUint64(o, z.BytesFailed) 530 // string "Bucket" 531 o = append(o, 0xa6, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74) 532 o = msgp.AppendString(o, z.Bucket) 533 // string "Object" 534 o = append(o, 0xa6, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74) 535 o = msgp.AppendString(o, z.Object) 536 // string "ResumeItemsHealed" 537 o = append(o, 0xb1, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x48, 0x65, 0x61, 0x6c, 0x65, 0x64) 538 o = msgp.AppendUint64(o, z.ResumeItemsHealed) 539 // string "ResumeItemsFailed" 540 o = append(o, 0xb1, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64) 541 o = msgp.AppendUint64(o, z.ResumeItemsFailed) 542 // string "ResumeBytesDone" 543 o = append(o, 0xaf, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x44, 0x6f, 0x6e, 0x65) 544 o = msgp.AppendUint64(o, z.ResumeBytesDone) 545 // string "ResumeBytesFailed" 546 o = append(o, 0xb1, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64) 547 o = msgp.AppendUint64(o, z.ResumeBytesFailed) 548 // string "QueuedBuckets" 549 o = append(o, 0xad, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73) 550 o = msgp.AppendArrayHeader(o, uint32(len(z.QueuedBuckets))) 551 for za0001 := range z.QueuedBuckets { 552 o = msgp.AppendString(o, z.QueuedBuckets[za0001]) 553 } 554 // string "HealedBuckets" 555 o = append(o, 0xad, 0x48, 0x65, 0x61, 0x6c, 0x65, 0x64, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73) 556 o = msgp.AppendArrayHeader(o, uint32(len(z.HealedBuckets))) 557 for za0002 := range z.HealedBuckets { 558 o = msgp.AppendString(o, z.HealedBuckets[za0002]) 559 } 560 // string "HealID" 561 o = append(o, 0xa6, 0x48, 0x65, 0x61, 0x6c, 0x49, 0x44) 562 o = msgp.AppendString(o, z.HealID) 563 // string "ItemsSkipped" 564 o = append(o, 0xac, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x53, 0x6b, 0x69, 0x70, 0x70, 0x65, 0x64) 565 o = msgp.AppendUint64(o, z.ItemsSkipped) 566 // string "BytesSkipped" 567 o = append(o, 0xac, 0x42, 0x79, 0x74, 0x65, 0x73, 0x53, 0x6b, 0x69, 0x70, 0x70, 0x65, 0x64) 568 o = msgp.AppendUint64(o, z.BytesSkipped) 569 return 570 } 571 572 // UnmarshalMsg implements msgp.Unmarshaler 573 func (z *healingTracker) UnmarshalMsg(bts []byte) (o []byte, err error) { 574 var field []byte 575 _ = field 576 var zb0001 uint32 577 zb0001, bts, err = msgp.ReadMapHeaderBytes(bts) 578 if err != nil { 579 err = msgp.WrapError(err) 580 return 581 } 582 for zb0001 > 0 { 583 zb0001-- 584 field, bts, err = msgp.ReadMapKeyZC(bts) 585 if err != nil { 586 err = msgp.WrapError(err) 587 return 588 } 589 switch msgp.UnsafeString(field) { 590 case "ID": 591 z.ID, bts, err = msgp.ReadStringBytes(bts) 592 if err != nil { 593 err = msgp.WrapError(err, "ID") 594 return 595 } 596 case "PoolIndex": 597 z.PoolIndex, bts, err = msgp.ReadIntBytes(bts) 598 if err != nil { 599 err = msgp.WrapError(err, "PoolIndex") 600 return 601 } 602 case "SetIndex": 603 z.SetIndex, bts, err = msgp.ReadIntBytes(bts) 604 if err != nil { 605 err = msgp.WrapError(err, "SetIndex") 606 return 607 } 608 case "DiskIndex": 609 z.DiskIndex, bts, err = msgp.ReadIntBytes(bts) 610 if err != nil { 611 err = msgp.WrapError(err, "DiskIndex") 612 return 613 } 614 case "Path": 615 z.Path, bts, err = msgp.ReadStringBytes(bts) 616 if err != nil { 617 err = msgp.WrapError(err, "Path") 618 return 619 } 620 case "Endpoint": 621 z.Endpoint, bts, err = msgp.ReadStringBytes(bts) 622 if err != nil { 623 err = msgp.WrapError(err, "Endpoint") 624 return 625 } 626 case "Started": 627 z.Started, bts, err = msgp.ReadTimeBytes(bts) 628 if err != nil { 629 err = msgp.WrapError(err, "Started") 630 return 631 } 632 case "LastUpdate": 633 z.LastUpdate, bts, err = msgp.ReadTimeBytes(bts) 634 if err != nil { 635 err = msgp.WrapError(err, "LastUpdate") 636 return 637 } 638 case "ObjectsTotalCount": 639 z.ObjectsTotalCount, bts, err = msgp.ReadUint64Bytes(bts) 640 if err != nil { 641 err = msgp.WrapError(err, "ObjectsTotalCount") 642 return 643 } 644 case "ObjectsTotalSize": 645 z.ObjectsTotalSize, bts, err = msgp.ReadUint64Bytes(bts) 646 if err != nil { 647 err = msgp.WrapError(err, "ObjectsTotalSize") 648 return 649 } 650 case "ItemsHealed": 651 z.ItemsHealed, bts, err = msgp.ReadUint64Bytes(bts) 652 if err != nil { 653 err = msgp.WrapError(err, "ItemsHealed") 654 return 655 } 656 case "ItemsFailed": 657 z.ItemsFailed, bts, err = msgp.ReadUint64Bytes(bts) 658 if err != nil { 659 err = msgp.WrapError(err, "ItemsFailed") 660 return 661 } 662 case "BytesDone": 663 z.BytesDone, bts, err = msgp.ReadUint64Bytes(bts) 664 if err != nil { 665 err = msgp.WrapError(err, "BytesDone") 666 return 667 } 668 case "BytesFailed": 669 z.BytesFailed, bts, err = msgp.ReadUint64Bytes(bts) 670 if err != nil { 671 err = msgp.WrapError(err, "BytesFailed") 672 return 673 } 674 case "Bucket": 675 z.Bucket, bts, err = msgp.ReadStringBytes(bts) 676 if err != nil { 677 err = msgp.WrapError(err, "Bucket") 678 return 679 } 680 case "Object": 681 z.Object, bts, err = msgp.ReadStringBytes(bts) 682 if err != nil { 683 err = msgp.WrapError(err, "Object") 684 return 685 } 686 case "ResumeItemsHealed": 687 z.ResumeItemsHealed, bts, err = msgp.ReadUint64Bytes(bts) 688 if err != nil { 689 err = msgp.WrapError(err, "ResumeItemsHealed") 690 return 691 } 692 case "ResumeItemsFailed": 693 z.ResumeItemsFailed, bts, err = msgp.ReadUint64Bytes(bts) 694 if err != nil { 695 err = msgp.WrapError(err, "ResumeItemsFailed") 696 return 697 } 698 case "ResumeBytesDone": 699 z.ResumeBytesDone, bts, err = msgp.ReadUint64Bytes(bts) 700 if err != nil { 701 err = msgp.WrapError(err, "ResumeBytesDone") 702 return 703 } 704 case "ResumeBytesFailed": 705 z.ResumeBytesFailed, bts, err = msgp.ReadUint64Bytes(bts) 706 if err != nil { 707 err = msgp.WrapError(err, "ResumeBytesFailed") 708 return 709 } 710 case "QueuedBuckets": 711 var zb0002 uint32 712 zb0002, bts, err = msgp.ReadArrayHeaderBytes(bts) 713 if err != nil { 714 err = msgp.WrapError(err, "QueuedBuckets") 715 return 716 } 717 if cap(z.QueuedBuckets) >= int(zb0002) { 718 z.QueuedBuckets = (z.QueuedBuckets)[:zb0002] 719 } else { 720 z.QueuedBuckets = make([]string, zb0002) 721 } 722 for za0001 := range z.QueuedBuckets { 723 z.QueuedBuckets[za0001], bts, err = msgp.ReadStringBytes(bts) 724 if err != nil { 725 err = msgp.WrapError(err, "QueuedBuckets", za0001) 726 return 727 } 728 } 729 case "HealedBuckets": 730 var zb0003 uint32 731 zb0003, bts, err = msgp.ReadArrayHeaderBytes(bts) 732 if err != nil { 733 err = msgp.WrapError(err, "HealedBuckets") 734 return 735 } 736 if cap(z.HealedBuckets) >= int(zb0003) { 737 z.HealedBuckets = (z.HealedBuckets)[:zb0003] 738 } else { 739 z.HealedBuckets = make([]string, zb0003) 740 } 741 for za0002 := range z.HealedBuckets { 742 z.HealedBuckets[za0002], bts, err = msgp.ReadStringBytes(bts) 743 if err != nil { 744 err = msgp.WrapError(err, "HealedBuckets", za0002) 745 return 746 } 747 } 748 case "HealID": 749 z.HealID, bts, err = msgp.ReadStringBytes(bts) 750 if err != nil { 751 err = msgp.WrapError(err, "HealID") 752 return 753 } 754 case "ItemsSkipped": 755 z.ItemsSkipped, bts, err = msgp.ReadUint64Bytes(bts) 756 if err != nil { 757 err = msgp.WrapError(err, "ItemsSkipped") 758 return 759 } 760 case "BytesSkipped": 761 z.BytesSkipped, bts, err = msgp.ReadUint64Bytes(bts) 762 if err != nil { 763 err = msgp.WrapError(err, "BytesSkipped") 764 return 765 } 766 default: 767 bts, err = msgp.Skip(bts) 768 if err != nil { 769 err = msgp.WrapError(err) 770 return 771 } 772 } 773 } 774 o = bts 775 return 776 } 777 778 // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message 779 func (z *healingTracker) Msgsize() (s int) { 780 s = 3 + 3 + msgp.StringPrefixSize + len(z.ID) + 10 + msgp.IntSize + 9 + msgp.IntSize + 10 + msgp.IntSize + 5 + msgp.StringPrefixSize + len(z.Path) + 9 + msgp.StringPrefixSize + len(z.Endpoint) + 8 + msgp.TimeSize + 11 + msgp.TimeSize + 18 + msgp.Uint64Size + 17 + msgp.Uint64Size + 12 + msgp.Uint64Size + 12 + msgp.Uint64Size + 10 + msgp.Uint64Size + 12 + msgp.Uint64Size + 7 + msgp.StringPrefixSize + len(z.Bucket) + 7 + msgp.StringPrefixSize + len(z.Object) + 18 + msgp.Uint64Size + 18 + msgp.Uint64Size + 16 + msgp.Uint64Size + 18 + msgp.Uint64Size + 14 + msgp.ArrayHeaderSize 781 for za0001 := range z.QueuedBuckets { 782 s += msgp.StringPrefixSize + len(z.QueuedBuckets[za0001]) 783 } 784 s += 14 + msgp.ArrayHeaderSize 785 for za0002 := range z.HealedBuckets { 786 s += msgp.StringPrefixSize + len(z.HealedBuckets[za0002]) 787 } 788 s += 7 + msgp.StringPrefixSize + len(z.HealID) + 13 + msgp.Uint64Size + 13 + msgp.Uint64Size 789 return 790 }