MCPcopy Create free account
hub / github.com/influxdata/influxdb / commit_catalog_changes

Method commit_catalog_changes

influxdb3_write/src/write_buffer/validator.rs:295–314  ·  view source on GitHub ↗
(
        self,
    )

Source from the content-addressed store, hash-verified

293
294impl WriteValidator<LinesParsed> {
295 pub async fn commit_catalog_changes(
296 self,
297 ) -> Result<Prompt<WriteValidator<CatalogChangesCommitted>>> {
298 let db_schema = self.state.txn.db_schema();
299 let db_id = db_schema.id;
300 let db_name = Arc::clone(&db_schema.name);
301 match self.state.catalog.commit(self.state.txn).await? {
302 Prompt::Success(catalog_sequence) => Ok(Prompt::Success(WriteValidator {
303 state: CatalogChangesCommitted {
304 catalog_sequence,
305 db_id,
306 db_name,
307 lines: self.state.lines,
308 bytes: self.state.bytes,
309 errors: self.state.errors,
310 },
311 })),
312 Prompt::Retry(_) => Ok(Prompt::Retry(())),
313 }
314 }
315
316 pub fn ignore_catalog_changes_and_convert_lines_to_buffer(
317 self,

Callers 10

write_lpMethod · 0.80
parse_lp_into_bufferFunction · 0.80
write_validator_v1Function · 0.80
write_to_rowsMethod · 0.80
write_lp_to_rowsMethod · 0.80

Calls 2

db_schemaMethod · 0.45
commitMethod · 0.45