Commit 56e7858
committed
TOOLS-4703 Simplify
This method was accepting ops as a `[]any` slice, even though it was only ever called with a single value, and that single value can always be a `db.Oplog` struct. I changed the code to work this way, which simplifies adding some new logging in this method.MongoRestore.ApplyOps method1 parent 3724b0e commit 56e7858
2 files changed
+24
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
| 342 | + | |
348 | 343 | | |
349 | 344 | | |
350 | 345 | | |
351 | 346 | | |
352 | 347 | | |
353 | 348 | | |
354 | | - | |
| 349 | + | |
355 | 350 | | |
356 | 351 | | |
357 | 352 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
365 | | - | |
| 365 | + | |
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
421 | 438 | | |
422 | 439 | | |
423 | 440 | | |
| |||
0 commit comments