MCPcopy Create free account
hub / github.com/deepseek-ai/3FS / commit

Method commit

src/fdb/FDB.cc:246–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246Task<EmptyResult> Transaction::commit() {
247 if (UNLIKELY(readonly_)) {
248 // Prevent tools like admin_cli or fsck from mistakenly modifying data
249 XLOGF(CRITICAL, "disallow call commit on a read-only FDBContext!!!");
250 EmptyResult result;
251 result.error_ = 1000; /* operation failed */
252 co_return result;
253 }
254 co_return co_await EmptyResult::toTask(fdb_transaction_commit(tr_.get()));
255}
256
257Task<EmptyResult> Transaction::onError(fdb_error_t err) {
258 co_return co_await EmptyResult::toTask(fdb_transaction_on_error(tr_.get(), err));

Callers 2

connThreadFuncMethod · 0.45
runAndCommitMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected