| 286 | } |
| 287 | |
| 288 | void e2e_fdb_commit(fdb_file_handle* fhandle, bool walflush){ |
| 289 | |
| 290 | TEST_INIT(); |
| 291 | |
| 292 | fdb_status status; |
| 293 | |
| 294 | if(walflush){ |
| 295 | status = fdb_commit(fhandle, FDB_COMMIT_MANUAL_WAL_FLUSH); |
| 296 | } else { // normal |
| 297 | status = fdb_commit(fhandle, FDB_COMMIT_NORMAL); |
| 298 | } |
| 299 | |
| 300 | TEST_CHK(status == FDB_RESULT_SUCCESS); |
| 301 | |
| 302 | } |
| 303 | |
| 304 | /* |
| 305 | * begin a new transaction and update storage state |
no outgoing calls
no test coverage detected