Commit 395263c
committed
pybind/cephfs: increment ref before calling out to c++
At the time this construction seemed safe since the caller should have a
reference but it could conveivably be the only ref. We don't want the ref count
to reach 0.
Additionally, catch errors so this callback is genuinely noexcept.
Signed-off-by: Patrick Donnelly <[email protected]>1 parent 302756c commit 395263c
1 file changed
+11
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
121 | 125 | | |
122 | 126 | | |
123 | 127 | | |
| |||
2316 | 2320 | | |
2317 | 2321 | | |
2318 | 2322 | | |
| 2323 | + | |
2319 | 2324 | | |
2320 | 2325 | | |
2321 | 2326 | | |
2322 | 2327 | | |
2323 | 2328 | | |
2324 | 2329 | | |
2325 | 2330 | | |
2326 | | - | |
2327 | | - | |
2328 | | - | |
| 2331 | + | |
| 2332 | + | |
2329 | 2333 | | |
2330 | 2334 | | |
2331 | 2335 | | |
| |||
0 commit comments