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

Method maybe_reconnect

src/libcephsqlite.cc:155–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153 return _connect();
154 }
155 int maybe_reconnect(rsptr _cluster) {
156 std::scoped_lock lock(cluster_mutex);
157 if (!cluster || cluster == _cluster) {
158 ldout(cct, 10) << "reconnecting to RADOS" << dendl;
159 _disconnect();
160 return _connect();
161 } else {
162 ldout(cct, 10) << "already reconnected" << dendl;
163 return 0;
164 }
165 }
166 int open(CephContext* _cct) {
167 std::scoped_lock lock(cluster_mutex);
168 return _open(_cct);

Callers 7

LockFunction · 0.80
UnlockFunction · 0.80
ReadFunction · 0.80
WriteFunction · 0.80
TruncateFunction · 0.80
SyncFunction · 0.80
FileSizeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected