MCPcopy Create free account
hub / github.com/ceph/ceph / set_write_error_handler

Method set_write_error_handler

src/osdc/Journaler.cc:1605–1610  ·  view source on GitHub ↗

* 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. *

Source from the content-addressed store, hash-verified

1603 * @param c callback/context to trigger on error
1604 */
1605void 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/**

Callers 4

createMethod · 0.80
_recovery_threadMethod · 0.80
_reformat_journalMethod · 0.80
PurgeQueueMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected