forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit12968cf
committed
Add flags argument to dsm_create.
Right now, there's only one flag, DSM_CREATE_NULL_IF_MAXSEGMENTS,which suppresses the error that would normally be thrown when themaximum number of segments already exists, instead returning NULL.It might be useful to add more flags in the future, such as one toignore allocation errors, but I haven't done that here.1 parent5f286c0 commit12968cf
3 files changed
+33
-4
lines changedLines changed: 29 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
454 | 454 |
| |
455 | 455 |
| |
456 | 456 |
| |
457 |
| - | |
| 457 | + | |
458 | 458 |
| |
459 |
| - | |
| 459 | + | |
460 | 460 |
| |
461 | 461 |
| |
462 | 462 |
| |
| |||
466 | 466 |
| |
467 | 467 |
| |
468 | 468 |
| |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
469 | 484 |
| |
470 | 485 |
| |
471 | 486 |
| |
| |||
496 | 511 |
| |
497 | 512 |
| |
498 | 513 |
| |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
499 | 525 |
| |
500 | 526 |
| |
501 | 527 |
| |
| 528 | + | |
502 | 529 |
| |
503 | 530 |
| |
504 | 531 |
| |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| 20 | + | |
| 21 | + | |
20 | 22 |
| |
21 | 23 |
| |
22 | 24 |
| |
| |||
29 | 31 |
| |
30 | 32 |
| |
31 | 33 |
| |
32 |
| - | |
| 34 | + | |
33 | 35 |
| |
34 | 36 |
| |
35 | 37 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
125 | 125 |
| |
126 | 126 |
| |
127 | 127 |
| |
128 |
| - | |
| 128 | + | |
129 | 129 |
| |
130 | 130 |
| |
131 | 131 |
| |
|
0 commit comments
Comments
(0)