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

Method reset

src/common/keyring.cc:133–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133[[nodiscard]] std::error_code LinuxKeyringSecret::reset() {
134 if (_serial == -1) {
135 return {-EINVAL, std::generic_category()};
136 }
137 if (const auto ret = remove(); ret) {
138 return ret;
139 }
140 _serial = -1;
141 _len = 0;
142 return {};
143}
144
145[[nodiscard]] bool LinuxKeyringSecret::initialized() const {
146 return _len > 0 && _serial != -1;

Callers 15

LinuxKeyringSecretClass · 0.95
cputrace_resetFunction · 0.45
supportedMethod · 0.45
_do_commandMethod · 0.45
CephContextMethod · 0.45
modify_msgr_hookMethod · 0.45
log_entryMethod · 0.45
log_log_entryMethod · 0.45
lockdep_get_free_idFunction · 0.45
lockdep_unregisterFunction · 0.45
clearMethod · 0.45

Calls 1

removeFunction · 0.50

Tested by

no test coverage detected