diff options
Diffstat (limited to 'src/third_party/wiredtiger/test/csuite/wt4156_metadata_salvage/main.c')
-rw-r--r-- | src/third_party/wiredtiger/test/csuite/wt4156_metadata_salvage/main.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/test/csuite/wt4156_metadata_salvage/main.c b/src/third_party/wiredtiger/test/csuite/wt4156_metadata_salvage/main.c index 1de7ad55c80..7f96978352b 100644 --- a/src/third_party/wiredtiger/test/csuite/wt4156_metadata_salvage/main.c +++ b/src/third_party/wiredtiger/test/csuite/wt4156_metadata_salvage/main.c @@ -50,6 +50,10 @@ static bool test_abort = false; static bool test_out_of_sync = false; static WT_SESSION *wt_session; +/* + * handle_message -- + * TODO: Add a comment describing this function. + */ static int handle_message(WT_EVENT_HANDLER *handler, WT_SESSION *session, int error, const char *message) { @@ -172,6 +176,10 @@ create_data(TABLE_INFO *t) * corrupt_metadata -- * Corrupt the file by scribbling on the provided URI string. */ +/* + * corrupt_file -- + * TODO: Add a comment describing this function. + */ static void corrupt_file(const char *file_name, const char *uri) { @@ -372,6 +380,10 @@ open_with_corruption(const char *sfx) testutil_check(conn->close(conn, NULL)); } +/* + * open_with_salvage -- + * TODO: Add a comment describing this function. + */ static void open_with_salvage(const char *sfx, TABLE_INFO *table_data) { @@ -404,6 +416,10 @@ open_with_salvage(const char *sfx, TABLE_INFO *table_data) testutil_check(conn->close(conn, NULL)); } +/* + * open_normal -- + * TODO: Add a comment describing this function. + */ static void open_normal(const char *sfx, TABLE_INFO *table_data) { @@ -420,6 +436,10 @@ open_normal(const char *sfx, TABLE_INFO *table_data) testutil_check(conn->close(conn, NULL)); } +/* + * run_all_verification -- + * TODO: Add a comment describing this function. + */ static void run_all_verification(const char *sfx, TABLE_INFO *t) { @@ -428,6 +448,10 @@ run_all_verification(const char *sfx, TABLE_INFO *t) open_normal(sfx, t); } +/* + * main -- + * TODO: Add a comment describing this function. + */ int main(int argc, char *argv[]) { |