* set write error callback * * Set a callback/context to trigger if we get a write error from * the objecter. This may be from an explicit request (e.g., flush) * or something async the journaler did on its own (e.g., journal * header update). * * It is only used once; if the caller continues to use the * Journaler and wants to hear about errors, it needs to reset the * error_handler. *
| 1603 | * @param c callback/context to trigger on error |
| 1604 | */ |
| 1605 | void Journaler::set_write_error_handler(Context *c) { |
| 1606 | lock_guard l(lock); |
| 1607 | ceph_assert(!on_write_error); |
| 1608 | on_write_error = wrap_finisher(c); |
| 1609 | called_write_error = false; |
| 1610 | } |
| 1611 | |
| 1612 | |
| 1613 | /** |
no outgoing calls
no test coverage detected