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

Method write

src/tools/cephfs/TableTool.cc:176–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174protected:
175
176 int write(const A &table_inst, librados::IoCtx *io)
177 {
178 bufferlist new_bl;
179 if (mds_table) {
180 version_t version = 1;
181 encode(version, new_bl);
182 }
183 table_inst.encode_state(new_bl);
184
185 // Write out new table
186 int r = io->write_full(object_name, new_bl);
187 if (r != 0) {
188 derr << "error writing table object " << object_name
189 << ": " << cpp_strerror(r) << dendl;
190 return r;
191 }
192
193 return r;
194 }
195};
196
197template <typename A>

Callers 15

mainFunction · 0.45
writeFunction · 0.45
mainFunction · 0.45
set_inc_osdmapFunction · 0.45
set_osdmapFunction · 0.45
get_dataFunction · 0.45
do_set_bytesFunction · 0.45
dupFunction · 0.45
mainFunction · 0.45
make_dedup_objectFunction · 0.45
get_object_radosMethod · 0.45
writeFunction · 0.45

Calls 4

cpp_strerrorFunction · 0.85
encodeFunction · 0.50
encode_stateMethod · 0.45
write_fullMethod · 0.45

Tested by

no test coverage detected