This repository was archived by the owner on May 3, 2024. It is now read-only.
Commit 65bcdcb
authored
CORTX-33586: ctgdump is crashing after new btree merge (#1974)
Issue:
- ctg_open() is responsible for allocating tree pointer and
opening the btree. This was missing before accessing the
catalogue tree in the ctgdump().
Fix:
- Added ctg_open() call before accessing tree pointer.
- Added m0_btree_close() to close tree in ctg_fini().
- Fix for ctg_fini() might get called on null tree reference.
Signed-off-by: Kanchan Chaudhari <[email protected]>1 parent 2730e68 commit 65bcdcb
2 files changed
+19
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
| 352 | + | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
356 | 355 | | |
357 | 356 | | |
358 | 357 | | |
| |||
388 | 387 | | |
389 | 388 | | |
390 | 389 | | |
391 | | - | |
| 390 | + | |
392 | 391 | | |
393 | 392 | | |
394 | 393 | | |
| |||
402 | 401 | | |
403 | 402 | | |
404 | 403 | | |
405 | | - | |
| 404 | + | |
406 | 405 | | |
407 | 406 | | |
408 | 407 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
438 | 441 | | |
439 | 442 | | |
440 | 443 | | |
441 | | - | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
442 | 450 | | |
443 | 451 | | |
444 | 452 | | |
| |||
499 | 507 | | |
500 | 508 | | |
501 | 509 | | |
| 510 | + | |
502 | 511 | | |
503 | 512 | | |
504 | 513 | | |
| |||
517 | 526 | | |
518 | 527 | | |
519 | 528 | | |
| 529 | + | |
520 | 530 | | |
521 | 531 | | |
522 | 532 | | |
| |||
2462 | 2472 | | |
2463 | 2473 | | |
2464 | 2474 | | |
2465 | | - | |
2466 | | - | |
2467 | | - | |
2468 | | - | |
| 2475 | + | |
| 2476 | + | |
| 2477 | + | |
| 2478 | + | |
2469 | 2479 | | |
2470 | | - | |
| 2480 | + | |
2471 | 2481 | | |
2472 | 2482 | | |
2473 | 2483 | | |
| |||
0 commit comments