MCPcopy Create free account
hub / github.com/activeloopai/deeplake / commit

Method commit

cpp/deeplake_pg/table_data_impl.hpp:85–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85inline void table_data::commit(bool show_progress)
86{
87 if (dataset_ == nullptr || !dataset_->has_uncommitted_changes()) {
88 return;
89 }
90 try {
91 flush();
92 impl::commit_dataset(get_dataset(), show_progress);
93 } catch (const std::exception& e) {
94 reset_insert_rows();
95 clear_delete_rows();
96 clear_update_rows();
97 elog(ERROR, "Failed to commit dataset: %s", e.what());
98 } catch (...) {
99 reset_insert_rows();
100 clear_delete_rows();
101 clear_update_rows();
102 elog(ERROR, "Failed to commit dataset, unknown exception");
103 }
104 streamers_.reset();
105 force_refresh();
106}
107
108inline void table_data::open_dataset(bool create)
109{

Callers 8

commit_allMethod · 0.45
drop_deeplake_indexesMethod · 0.45
create_tableMethod · 0.45
drop_tableMethod · 0.45
clearMethod · 0.45
process_utilityFunction · 0.45
commit_datasetFunction · 0.45

Calls 3

commit_datasetFunction · 0.85
whatMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected