MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Begin

Method Begin

tensorflow/core/lib/db/sqlite.cc:259–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259void SqliteTransaction::Begin() {
260 // This shouldn't allocate memory or perform I/O. All it does is
261 // execute OP_AutoCommit(0, 0) a.k.a. BEGIN DEFERRED which flips
262 // the sqlite3::autoCommit bit.
263 if (sqlite3_step(db_->begin_) != SQLITE_DONE) {
264 // It shouldn't be possible for this to fail since we already
265 // performed the reentrancy check.
266 LOG(FATAL) << "BEGIN failed: " << sqlite3_errmsg(db_->db_);
267 }
268}
269
270Status SqliteTransaction::Commit() {
271 int rc = sqlite3_step(db_->commit_);

Callers 4

SaveBloomFilterFunction · 0.45
RestoreBloomFilterFunction · 0.45
SaveHashTableHelperFunction · 0.45
InsertTableFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected