Commit a2b76b0
committed
rgw: prevent crash in
This subcommand is used to ask radosgw-admin which bucket index shard
a given object in a given bucket would have its bucket index entry
on. The user is required to supply the number of shards (i.e., the
command doesn't look that up). If 0 is provided it would result in a
divide by zero runtime exception. Values less than or equal to zero
are now protected.
Signed-off-by: J. Eric Ivancich <[email protected]>radosgw-admin bucket object shard ...
1 parent 4448e6a commit a2b76b0
File tree
3 files changed
+15
-7
lines changed- src/rgw
- driver/rados
- radosgw-admin
- services
3 files changed
+15
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
66 | 68 | | |
| 69 | + | |
| 70 | + | |
67 | 71 | | |
68 | | - | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7695 | 7695 | | |
7696 | 7696 | | |
7697 | 7697 | | |
| 7698 | + | |
| 7699 | + | |
| 7700 | + | |
| 7701 | + | |
7698 | 7702 | | |
7699 | | - | |
| 7703 | + | |
| 7704 | + | |
7700 | 7705 | | |
7701 | 7706 | | |
7702 | 7707 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | | - | |
| 103 | + | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
| 110 | + | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
0 commit comments