summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Chen <luke.chen@mongodb.com>2022-01-11 16:22:03 +1100
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-01-11 05:52:02 +0000
commitd81680a85034fa145c8e7c649f6e4b856441cf27 (patch)
tree60e025a0183a03ac7195a4db8a7cba9f6b1911aa
parent407ec649e0cfaee34883a398db5d8975954f519a (diff)
downloadmongo-d81680a85034fa145c8e7c649f6e4b856441cf27.tar.gz
Import wiredtiger: 191e1c26eb8f64b372504744d0a9da621664f125 from branch mongodb-5.2
ref: e1427e4a69..191e1c26eb for: 5.2.0-rc5 WT-8274 Run function.py on all our source files
-rw-r--r--src/third_party/wiredtiger/dist/function.py6
-rw-r--r--src/third_party/wiredtiger/dist/s_string.ok9
-rw-r--r--src/third_party/wiredtiger/import.data2
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_alter.c8
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_backup.c12
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_compact.c8
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_cpyright.c4
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_create.c8
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_downgrade.c8
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_drop.c8
-rwxr-xr-xsrc/third_party/wiredtiger/src/utilities/util_dump.c20
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_list.c8
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_load.c8
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_load_json.c4
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_loadtext.c8
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_main.c12
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_misc.c4
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_printlog.c8
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_read.c8
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_rename.c8
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_salvage.c8
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_stat.c8
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_truncate.c8
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_upgrade.c8
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_verify.c8
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_write.c8
-rw-r--r--src/third_party/wiredtiger/test/bloom/test_bloom.c20
-rw-r--r--src/third_party/wiredtiger/test/checkpoint/test_checkpoint.c12
-rw-r--r--src/third_party/wiredtiger/test/csuite/incr_backup/main.c36
-rw-r--r--src/third_party/wiredtiger/test/csuite/random_abort/main.c24
-rw-r--r--src/third_party/wiredtiger/test/csuite/random_directio/main.c28
-rw-r--r--src/third_party/wiredtiger/test/csuite/rwlock/main.c12
-rw-r--r--src/third_party/wiredtiger/test/csuite/schema_abort/main.c28
-rw-r--r--src/third_party/wiredtiger/test/csuite/scope/main.c16
-rw-r--r--src/third_party/wiredtiger/test/csuite/tiered_abort/main.c24
-rw-r--r--src/third_party/wiredtiger/test/csuite/timestamp_abort/main.c24
-rw-r--r--src/third_party/wiredtiger/test/csuite/truncated_log/main.c16
-rw-r--r--src/third_party/wiredtiger/test/csuite/wt1965_col_efficiency/main.c8
-rw-r--r--src/third_party/wiredtiger/test/csuite/wt2246_col_append/main.c12
-rw-r--r--src/third_party/wiredtiger/test/csuite/wt2323_join_visibility/main.c16
-rw-r--r--src/third_party/wiredtiger/test/csuite/wt2403_lsm_workload/main.c20
-rw-r--r--src/third_party/wiredtiger/test/csuite/wt2447_join_main_table/main.c8
-rw-r--r--src/third_party/wiredtiger/test/csuite/wt2535_insert_race/main.c8
-rw-r--r--src/third_party/wiredtiger/test/csuite/wt2592_join_schema/main.c4
-rw-r--r--src/third_party/wiredtiger/test/csuite/wt2695_checksum/main.c8
-rw-r--r--src/third_party/wiredtiger/test/csuite/wt2719_reconfig/main.c16
-rw-r--r--src/third_party/wiredtiger/test/csuite/wt2834_join_bloom_fix/main.c8
-rw-r--r--src/third_party/wiredtiger/test/csuite/wt2853_perf/main.c12
-rw-r--r--src/third_party/wiredtiger/test/csuite/wt2999_join_extractor/main.c12
-rw-r--r--src/third_party/wiredtiger/test/csuite/wt3120_filesys/main.c4
-rw-r--r--src/third_party/wiredtiger/test/csuite/wt3135_search_near_collator/main.c40
-rw-r--r--src/third_party/wiredtiger/test/csuite/wt3184_dup_index_collator/main.c24
-rw-r--r--src/third_party/wiredtiger/test/csuite/wt3338_partial_update/main.c8
-rw-r--r--src/third_party/wiredtiger/test/csuite/wt3363_checkpoint_op_races/main.c16
-rw-r--r--src/third_party/wiredtiger/test/csuite/wt3874_pad_byte_collator/main.c8
-rw-r--r--src/third_party/wiredtiger/test/csuite/wt4105_large_doc_small_upd/main.c12
-rw-r--r--src/third_party/wiredtiger/test/csuite/wt4117_checksum/main.c12
-rw-r--r--src/third_party/wiredtiger/test/csuite/wt4156_metadata_salvage/main.c24
-rw-r--r--src/third_party/wiredtiger/test/csuite/wt4333_handle_locks/main.c40
-rw-r--r--src/third_party/wiredtiger/test/csuite/wt4699_json/main.c4
-rw-r--r--src/third_party/wiredtiger/test/csuite/wt4803_history_store_abort/main.c16
-rw-r--r--src/third_party/wiredtiger/test/csuite/wt4891_meta_ckptlist_get_alloc/main.c4
-rw-r--r--src/third_party/wiredtiger/test/csuite/wt6185_modify_ts/main.c12
-rw-r--r--src/third_party/wiredtiger/test/csuite/wt6616_checkpoint_oldest_ts/main.c16
-rw-r--r--src/third_party/wiredtiger/test/csuite/wt7989_compact_checkpoint/main.c48
-rw-r--r--src/third_party/wiredtiger/test/csuite/wt8057_compact_stress/main.c44
-rw-r--r--src/third_party/wiredtiger/test/csuite/wt8246_compact_rts_data_correctness/main.c36
-rw-r--r--src/third_party/wiredtiger/test/cursor_order/cursor_order.c12
-rw-r--r--src/third_party/wiredtiger/test/cursor_order/cursor_order_file.c12
-rw-r--r--src/third_party/wiredtiger/test/cursor_order/cursor_order_ops.c4
-rw-r--r--src/third_party/wiredtiger/test/fops/file.c36
-rw-r--r--src/third_party/wiredtiger/test/fops/fops.c4
-rw-r--r--src/third_party/wiredtiger/test/fops/t.c12
-rw-r--r--src/third_party/wiredtiger/test/format/t.c4
-rw-r--r--src/third_party/wiredtiger/test/huge/huge.c12
-rw-r--r--src/third_party/wiredtiger/test/manydbs/manydbs.c16
-rw-r--r--src/third_party/wiredtiger/test/packing/intpack-test.c4
-rw-r--r--src/third_party/wiredtiger/test/packing/intpack-test2.c4
-rw-r--r--src/third_party/wiredtiger/test/packing/intpack-test3.c12
-rw-r--r--src/third_party/wiredtiger/test/packing/packing-test.c8
-rw-r--r--src/third_party/wiredtiger/test/readonly/readonly.c16
-rw-r--r--src/third_party/wiredtiger/test/salvage/salvage.c16
-rw-r--r--src/third_party/wiredtiger/test/syscall/wt2336_base/main.c8
-rw-r--r--src/third_party/wiredtiger/test/thread/file.c12
-rw-r--r--src/third_party/wiredtiger/test/thread/rw.c4
-rw-r--r--src/third_party/wiredtiger/test/thread/stats.c4
-rw-r--r--src/third_party/wiredtiger/test/thread/t.c12
-rw-r--r--src/third_party/wiredtiger/test/utility/misc.c8
-rw-r--r--src/third_party/wiredtiger/test/utility/thread.c36
-rw-r--r--src/third_party/wiredtiger/test/windows/windows_shim.c40
90 files changed, 1241 insertions, 4 deletions
diff --git a/src/third_party/wiredtiger/dist/function.py b/src/third_party/wiredtiger/dist/function.py
index dd6b4bb08a3..cb7aa5b161f 100644
--- a/src/third_party/wiredtiger/dist/function.py
+++ b/src/third_party/wiredtiger/dist/function.py
@@ -2,12 +2,12 @@
# Check the style of WiredTiger C code.
from __future__ import print_function
-import fnmatch, os, re, sys
-from dist import all_c_files, compare_srcfile, source_files
+import re, sys
+from dist import all_c_files, compare_srcfile
# Complain if a function comment is missing.
def missing_comment():
- for f in source_files():
+ for f in all_c_files():
skip_re = re.compile(r'DO NOT EDIT: automatically built')
func_re = re.compile(
r'(/\*(?:[^\*]|\*[^/])*\*/)?\n\w[\w \*]+\n(\w+)', re.DOTALL)
diff --git a/src/third_party/wiredtiger/dist/s_string.ok b/src/third_party/wiredtiger/dist/s_string.ok
index c40fe06f231..0b75440a709 100644
--- a/src/third_party/wiredtiger/dist/s_string.ok
+++ b/src/third_party/wiredtiger/dist/s_string.ok
@@ -1205,6 +1205,7 @@ ondisk
onint
online
onpage
+onsig
oo
opcode
openat
@@ -1299,6 +1300,7 @@ rb
rbrace
rbracket
rcursor
+rdlock
rdonly
rdtsc
rduppo
@@ -1342,6 +1344,7 @@ rpc
rts
ru
run's
+runone
runtime
rw
rwlock
@@ -1364,6 +1367,7 @@ setv
setvbuf
sfence
shareability
+sig
signalled
sii
sizeof
@@ -1472,6 +1476,8 @@ trk's
trun
trunc
trylock
+tryrdlock
+trywrlock
tsc
tupdate
tv
@@ -1536,6 +1542,7 @@ usecs
usedp
userbad
usercfg
+usleep
usr
utf
util
@@ -1563,6 +1570,7 @@ vprintf
vrfy
vsize
vsnprintf
+vthread
vtype
vunpack
vxr
@@ -1589,6 +1597,7 @@ wrlock
wrlsn
ws
wtbench
+wthread
wti
wtobj
wtperf
diff --git a/src/third_party/wiredtiger/import.data b/src/third_party/wiredtiger/import.data
index aa316802ab1..2c795d7072f 100644
--- a/src/third_party/wiredtiger/import.data
+++ b/src/third_party/wiredtiger/import.data
@@ -2,5 +2,5 @@
"vendor": "wiredtiger",
"github": "wiredtiger/wiredtiger.git",
"branch": "mongodb-5.2",
- "commit": "e1427e4a69fa834ea3630523526379eaaef18c6c"
+ "commit": "191e1c26eb8f64b372504744d0a9da621664f125"
}
diff --git a/src/third_party/wiredtiger/src/utilities/util_alter.c b/src/third_party/wiredtiger/src/utilities/util_alter.c
index f46c8e4f61a..2da794dd462 100644
--- a/src/third_party/wiredtiger/src/utilities/util_alter.c
+++ b/src/third_party/wiredtiger/src/utilities/util_alter.c
@@ -8,6 +8,10 @@
#include "util.h"
+/*
+ * usage --
+ * TODO: Add a comment describing this function.
+ */
static int
usage(void)
{
@@ -15,6 +19,10 @@ usage(void)
return (1);
}
+/*
+ * util_alter --
+ * TODO: Add a comment describing this function.
+ */
int
util_alter(WT_SESSION *session, int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/src/utilities/util_backup.c b/src/third_party/wiredtiger/src/utilities/util_backup.c
index def077df91a..48e95d82db9 100644
--- a/src/third_party/wiredtiger/src/utilities/util_backup.c
+++ b/src/third_party/wiredtiger/src/utilities/util_backup.c
@@ -10,6 +10,10 @@
static int copy(WT_SESSION *, const char *, const char *);
+/*
+ * usage --
+ * TODO: Add a comment describing this function.
+ */
static int
usage(void)
{
@@ -20,6 +24,10 @@ usage(void)
return (1);
}
+/*
+ * util_backup --
+ * TODO: Add a comment describing this function.
+ */
int
util_backup(WT_SESSION *session, int argc, char *argv[])
{
@@ -86,6 +94,10 @@ err:
return (ret);
}
+/*
+ * copy --
+ * TODO: Add a comment describing this function.
+ */
static int
copy(WT_SESSION *session, const char *directory, const char *name)
{
diff --git a/src/third_party/wiredtiger/src/utilities/util_compact.c b/src/third_party/wiredtiger/src/utilities/util_compact.c
index 33a4b9985d7..aa710d70018 100644
--- a/src/third_party/wiredtiger/src/utilities/util_compact.c
+++ b/src/third_party/wiredtiger/src/utilities/util_compact.c
@@ -8,6 +8,10 @@
#include "util.h"
+/*
+ * usage --
+ * TODO: Add a comment describing this function.
+ */
static int
usage(void)
{
@@ -15,6 +19,10 @@ usage(void)
return (1);
}
+/*
+ * util_compact --
+ * TODO: Add a comment describing this function.
+ */
int
util_compact(WT_SESSION *session, int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/src/utilities/util_cpyright.c b/src/third_party/wiredtiger/src/utilities/util_cpyright.c
index e8cd1a0e304..85191111bf8 100644
--- a/src/third_party/wiredtiger/src/utilities/util_cpyright.c
+++ b/src/third_party/wiredtiger/src/utilities/util_cpyright.c
@@ -8,6 +8,10 @@
#include "util.h"
+/*
+ * util_copyright --
+ * TODO: Add a comment describing this function.
+ */
void
util_copyright(void)
{
diff --git a/src/third_party/wiredtiger/src/utilities/util_create.c b/src/third_party/wiredtiger/src/utilities/util_create.c
index f08c1330360..574f7c1ec1d 100644
--- a/src/third_party/wiredtiger/src/utilities/util_create.c
+++ b/src/third_party/wiredtiger/src/utilities/util_create.c
@@ -8,6 +8,10 @@
#include "util.h"
+/*
+ * usage --
+ * TODO: Add a comment describing this function.
+ */
static int
usage(void)
{
@@ -18,6 +22,10 @@ usage(void)
return (1);
}
+/*
+ * util_create --
+ * TODO: Add a comment describing this function.
+ */
int
util_create(WT_SESSION *session, int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/src/utilities/util_downgrade.c b/src/third_party/wiredtiger/src/utilities/util_downgrade.c
index 39f4794dc97..24b676223fb 100644
--- a/src/third_party/wiredtiger/src/utilities/util_downgrade.c
+++ b/src/third_party/wiredtiger/src/utilities/util_downgrade.c
@@ -8,6 +8,10 @@
#include "util.h"
+/*
+ * usage --
+ * TODO: Add a comment describing this function.
+ */
static int
usage(void)
{
@@ -18,6 +22,10 @@ usage(void)
return (1);
}
+/*
+ * util_downgrade --
+ * TODO: Add a comment describing this function.
+ */
int
util_downgrade(WT_SESSION *session, int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/src/utilities/util_drop.c b/src/third_party/wiredtiger/src/utilities/util_drop.c
index aec61d0ae9d..0bc43377f91 100644
--- a/src/third_party/wiredtiger/src/utilities/util_drop.c
+++ b/src/third_party/wiredtiger/src/utilities/util_drop.c
@@ -8,6 +8,10 @@
#include "util.h"
+/*
+ * usage --
+ * TODO: Add a comment describing this function.
+ */
static int
usage(void)
{
@@ -15,6 +19,10 @@ usage(void)
return (1);
}
+/*
+ * util_drop --
+ * TODO: Add a comment describing this function.
+ */
int
util_drop(WT_SESSION *session, int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/src/utilities/util_dump.c b/src/third_party/wiredtiger/src/utilities/util_dump.c
index 6053e5d03dc..a7f8de928b3 100755
--- a/src/third_party/wiredtiger/src/utilities/util_dump.c
+++ b/src/third_party/wiredtiger/src/utilities/util_dump.c
@@ -28,6 +28,10 @@ static int dup_json_string(const char *, char **);
static int print_config(WT_SESSION *, const char *, const char *, bool, bool);
static int time_pair_to_timestamp(WT_SESSION_IMPL *, char *, WT_ITEM *);
+/*
+ * usage --
+ * TODO: Add a comment describing this function.
+ */
static int
usage(void)
{
@@ -53,6 +57,10 @@ usage(void)
static FILE *fp;
+/*
+ * util_dump --
+ * TODO: Add a comment describing this function.
+ */
int
util_dump(WT_SESSION *session, int argc, char *argv[])
{
@@ -322,6 +330,10 @@ dump_json_end(WT_SESSION *session)
* dump_json_begin --
* Output a separator between two JSON outputs in a list.
*/
+/*
+ * dump_json_separator --
+ * TODO: Add a comment describing this function.
+ */
static int
dump_json_separator(WT_SESSION *session)
{
@@ -346,6 +358,10 @@ dump_json_table_end(WT_SESSION *session)
* dump_add_config
* Add a formatted config string to an output buffer.
*/
+/*
+ * dump_add_config --
+ * TODO: Add a comment describing this function.
+ */
static int
dump_add_config(WT_SESSION *session, char **bufp, size_t *leftp, const char *fmt, ...)
WT_GCC_FUNC_ATTRIBUTE((format(printf, 4, 5)))
@@ -572,6 +588,10 @@ match:
/*
* Returns dump type string based on the passed format flags
*/
+/*
+ * get_dump_type --
+ * TODO: Add a comment describing this function.
+ */
static const char *
get_dump_type(bool pretty, bool hex, bool json)
{
diff --git a/src/third_party/wiredtiger/src/utilities/util_list.c b/src/third_party/wiredtiger/src/utilities/util_list.c
index 49e8ae0b199..405b79d0721 100644
--- a/src/third_party/wiredtiger/src/utilities/util_list.c
+++ b/src/third_party/wiredtiger/src/utilities/util_list.c
@@ -12,6 +12,10 @@ static int list_init_block(WT_SESSION *, const char *, WT_BLOCK *);
static int list_print(WT_SESSION *, const char *, bool, bool);
static int list_print_checkpoint(WT_SESSION *, const char *);
+/*
+ * usage --
+ * TODO: Add a comment describing this function.
+ */
static int
usage(void)
{
@@ -24,6 +28,10 @@ usage(void)
return (1);
}
+/*
+ * util_list --
+ * TODO: Add a comment describing this function.
+ */
int
util_list(WT_SESSION *session, int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/src/utilities/util_load.c b/src/third_party/wiredtiger/src/utilities/util_load.c
index ba0b019453a..10d04ed06fa 100644
--- a/src/third_party/wiredtiger/src/utilities/util_load.c
+++ b/src/third_party/wiredtiger/src/utilities/util_load.c
@@ -21,6 +21,10 @@ static char **cmdconfig; /* configuration pairs */
static bool json = false; /* -j input is JSON format */
static bool no_overwrite = false; /* -n don't overwrite existing data */
+/*
+ * usage --
+ * TODO: Add a comment describing this function.
+ */
static int
usage(void)
{
@@ -35,6 +39,10 @@ usage(void)
return (1);
}
+/*
+ * util_load --
+ * TODO: Add a comment describing this function.
+ */
int
util_load(WT_SESSION *session, int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/src/utilities/util_load_json.c b/src/third_party/wiredtiger/src/utilities/util_load_json.c
index d1a92944a43..b2e844cb171 100644
--- a/src/third_party/wiredtiger/src/utilities/util_load_json.c
+++ b/src/third_party/wiredtiger/src/utilities/util_load_json.c
@@ -559,6 +559,10 @@ out:
* load_json --
* Load from the JSON format produced by 'wt dump -j'.
*/
+/*
+ * util_load_json --
+ * TODO: Add a comment describing this function.
+ */
int
util_load_json(WT_SESSION *session, const char *filename, uint32_t flags)
{
diff --git a/src/third_party/wiredtiger/src/utilities/util_loadtext.c b/src/third_party/wiredtiger/src/utilities/util_loadtext.c
index 44d73b410bd..96a5de2865c 100644
--- a/src/third_party/wiredtiger/src/utilities/util_loadtext.c
+++ b/src/third_party/wiredtiger/src/utilities/util_loadtext.c
@@ -11,6 +11,10 @@
static int insert(WT_CURSOR *, const char *, bool);
static int text(WT_SESSION *, const char *);
+/*
+ * usage --
+ * TODO: Add a comment describing this function.
+ */
static int
usage(void)
{
@@ -21,6 +25,10 @@ usage(void)
return (1);
}
+/*
+ * util_loadtext --
+ * TODO: Add a comment describing this function.
+ */
int
util_loadtext(WT_SESSION *session, int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/src/utilities/util_main.c b/src/third_party/wiredtiger/src/utilities/util_main.c
index c4d1fa2fd67..9a83fc2f785 100644
--- a/src/third_party/wiredtiger/src/utilities/util_main.c
+++ b/src/third_party/wiredtiger/src/utilities/util_main.c
@@ -28,6 +28,10 @@ static const char *mongodb_config = "log=(enabled=true,path=journal,compressor=s
/*
* wt_explicit_zero: clear a buffer, with precautions against being optimized away.
*/
+/*
+ * wt_explicit_zero --
+ * TODO: Add a comment describing this function.
+ */
static void
wt_explicit_zero(void *ptr, size_t len)
{
@@ -36,6 +40,10 @@ wt_explicit_zero(void *ptr, size_t len)
(void)memsetptr(ptr, '\0', len);
}
+/*
+ * usage --
+ * TODO: Add a comment describing this function.
+ */
static void
usage(void)
{
@@ -63,6 +71,10 @@ usage(void)
util_usage(NULL, "commands:", commands);
}
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/src/utilities/util_misc.c b/src/third_party/wiredtiger/src/utilities/util_misc.c
index 75cadf3207a..24537c99575 100644
--- a/src/third_party/wiredtiger/src/utilities/util_misc.c
+++ b/src/third_party/wiredtiger/src/utilities/util_misc.c
@@ -8,6 +8,10 @@
#include "util.h"
+/*
+ * util_cerr --
+ * TODO: Add a comment describing this function.
+ */
int
util_cerr(WT_CURSOR *cursor, const char *op, int ret)
{
diff --git a/src/third_party/wiredtiger/src/utilities/util_printlog.c b/src/third_party/wiredtiger/src/utilities/util_printlog.c
index 085e54ef8aa..3c46627b2e2 100644
--- a/src/third_party/wiredtiger/src/utilities/util_printlog.c
+++ b/src/third_party/wiredtiger/src/utilities/util_printlog.c
@@ -8,6 +8,10 @@
#include "util.h"
+/*
+ * usage --
+ * TODO: Add a comment describing this function.
+ */
static int
usage(void)
{
@@ -24,6 +28,10 @@ usage(void)
return (1);
}
+/*
+ * util_printlog --
+ * TODO: Add a comment describing this function.
+ */
int
util_printlog(WT_SESSION *session, int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/src/utilities/util_read.c b/src/third_party/wiredtiger/src/utilities/util_read.c
index dd7aa08c3e9..ae9687b296f 100644
--- a/src/third_party/wiredtiger/src/utilities/util_read.c
+++ b/src/third_party/wiredtiger/src/utilities/util_read.c
@@ -8,6 +8,10 @@
#include "util.h"
+/*
+ * usage --
+ * TODO: Add a comment describing this function.
+ */
static int
usage(void)
{
@@ -15,6 +19,10 @@ usage(void)
return (1);
}
+/*
+ * util_read --
+ * TODO: Add a comment describing this function.
+ */
int
util_read(WT_SESSION *session, int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/src/utilities/util_rename.c b/src/third_party/wiredtiger/src/utilities/util_rename.c
index d518c98fb2e..f848051bdd3 100644
--- a/src/third_party/wiredtiger/src/utilities/util_rename.c
+++ b/src/third_party/wiredtiger/src/utilities/util_rename.c
@@ -8,6 +8,10 @@
#include "util.h"
+/*
+ * usage --
+ * TODO: Add a comment describing this function.
+ */
static int
usage(void)
{
@@ -15,6 +19,10 @@ usage(void)
return (1);
}
+/*
+ * util_rename --
+ * TODO: Add a comment describing this function.
+ */
int
util_rename(WT_SESSION *session, int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/src/utilities/util_salvage.c b/src/third_party/wiredtiger/src/utilities/util_salvage.c
index afbb2d04d2b..b5ee44ef457 100644
--- a/src/third_party/wiredtiger/src/utilities/util_salvage.c
+++ b/src/third_party/wiredtiger/src/utilities/util_salvage.c
@@ -8,6 +8,10 @@
#include "util.h"
+/*
+ * usage --
+ * TODO: Add a comment describing this function.
+ */
static int
usage(void)
{
@@ -19,6 +23,10 @@ usage(void)
return (1);
}
+/*
+ * util_salvage --
+ * TODO: Add a comment describing this function.
+ */
int
util_salvage(WT_SESSION *session, int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/src/utilities/util_stat.c b/src/third_party/wiredtiger/src/utilities/util_stat.c
index 565633f5151..476682db26a 100644
--- a/src/third_party/wiredtiger/src/utilities/util_stat.c
+++ b/src/third_party/wiredtiger/src/utilities/util_stat.c
@@ -8,6 +8,10 @@
#include "util.h"
+/*
+ * usage --
+ * TODO: Add a comment describing this function.
+ */
static int
usage(void)
{
@@ -18,6 +22,10 @@ usage(void)
return (1);
}
+/*
+ * util_stat --
+ * TODO: Add a comment describing this function.
+ */
int
util_stat(WT_SESSION *session, int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/src/utilities/util_truncate.c b/src/third_party/wiredtiger/src/utilities/util_truncate.c
index d4dab63d2a9..459aacaad94 100644
--- a/src/third_party/wiredtiger/src/utilities/util_truncate.c
+++ b/src/third_party/wiredtiger/src/utilities/util_truncate.c
@@ -8,6 +8,10 @@
#include "util.h"
+/*
+ * usage --
+ * TODO: Add a comment describing this function.
+ */
static int
usage(void)
{
@@ -15,6 +19,10 @@ usage(void)
return (1);
}
+/*
+ * util_truncate --
+ * TODO: Add a comment describing this function.
+ */
int
util_truncate(WT_SESSION *session, int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/src/utilities/util_upgrade.c b/src/third_party/wiredtiger/src/utilities/util_upgrade.c
index 0a5a16bdb2b..a3ff0b443ea 100644
--- a/src/third_party/wiredtiger/src/utilities/util_upgrade.c
+++ b/src/third_party/wiredtiger/src/utilities/util_upgrade.c
@@ -8,6 +8,10 @@
#include "util.h"
+/*
+ * usage --
+ * TODO: Add a comment describing this function.
+ */
static int
usage(void)
{
@@ -15,6 +19,10 @@ usage(void)
return (1);
}
+/*
+ * util_upgrade --
+ * TODO: Add a comment describing this function.
+ */
int
util_upgrade(WT_SESSION *session, int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/src/utilities/util_verify.c b/src/third_party/wiredtiger/src/utilities/util_verify.c
index 1ee4c1bcc90..c4d18dc00ea 100644
--- a/src/third_party/wiredtiger/src/utilities/util_verify.c
+++ b/src/third_party/wiredtiger/src/utilities/util_verify.c
@@ -8,6 +8,10 @@
#include "util.h"
+/*
+ * usage --
+ * TODO: Add a comment describing this function.
+ */
static int
usage(void)
{
@@ -23,6 +27,10 @@ usage(void)
return (1);
}
+/*
+ * util_verify --
+ * TODO: Add a comment describing this function.
+ */
int
util_verify(WT_SESSION *session, int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/src/utilities/util_write.c b/src/third_party/wiredtiger/src/utilities/util_write.c
index fc0a846e54f..aa58589c8e0 100644
--- a/src/third_party/wiredtiger/src/utilities/util_write.c
+++ b/src/third_party/wiredtiger/src/utilities/util_write.c
@@ -8,6 +8,10 @@
#include "util.h"
+/*
+ * usage --
+ * TODO: Add a comment describing this function.
+ */
static int
usage(void)
{
@@ -18,6 +22,10 @@ usage(void)
return (1);
}
+/*
+ * util_write --
+ * TODO: Add a comment describing this function.
+ */
int
util_write(WT_SESSION *session, int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/test/bloom/test_bloom.c b/src/third_party/wiredtiger/test/bloom/test_bloom.c
index fb964c52a31..d15371a214d 100644
--- a/src/third_party/wiredtiger/test/bloom/test_bloom.c
+++ b/src/third_party/wiredtiger/test/bloom/test_bloom.c
@@ -56,6 +56,10 @@ void usage(void) WT_GCC_FUNC_DECL_ATTRIBUTE((noreturn));
extern char *__wt_optarg;
extern int __wt_optind;
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
@@ -100,6 +104,10 @@ main(int argc, char *argv[])
return (EXIT_SUCCESS);
}
+/*
+ * setup --
+ * TODO: Add a comment describing this function.
+ */
void
setup(void)
{
@@ -137,6 +145,10 @@ setup(void)
populate_entries();
}
+/*
+ * run --
+ * TODO: Add a comment describing this function.
+ */
void
run(void)
{
@@ -197,6 +209,10 @@ run(void)
testutil_check(__wt_bloom_drop(bloomp, NULL));
}
+/*
+ * cleanup --
+ * TODO: Add a comment describing this function.
+ */
void
cleanup(void)
{
@@ -213,6 +229,10 @@ cleanup(void)
* Create and keep all the strings used to populate the bloom filter, so that we can do validation
* with the same set of entries.
*/
+/*
+ * populate_entries --
+ * TODO: Add a comment describing this function.
+ */
void
populate_entries(void)
{
diff --git a/src/third_party/wiredtiger/test/checkpoint/test_checkpoint.c b/src/third_party/wiredtiger/test/checkpoint/test_checkpoint.c
index 8005046ca8e..a864b035563 100644
--- a/src/third_party/wiredtiger/test/checkpoint/test_checkpoint.c
+++ b/src/third_party/wiredtiger/test/checkpoint/test_checkpoint.c
@@ -41,6 +41,10 @@ static int wt_shutdown(void);
extern int __wt_optind;
extern char *__wt_optarg;
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
@@ -334,6 +338,10 @@ cleanup(bool remove_dir)
testutil_make_work_dir(g.home);
}
+/*
+ * handle_error --
+ * TODO: Add a comment describing this function.
+ */
static int
handle_error(WT_EVENT_HANDLER *handler, WT_SESSION *session, int error, const char *errmsg)
{
@@ -344,6 +352,10 @@ handle_error(WT_EVENT_HANDLER *handler, WT_SESSION *session, int error, const ch
return (fprintf(stderr, "%s\n", errmsg) < 0 ? -1 : 0);
}
+/*
+ * handle_message --
+ * TODO: Add a comment describing this function.
+ */
static int
handle_message(WT_EVENT_HANDLER *handler, WT_SESSION *session, const char *message)
{
diff --git a/src/third_party/wiredtiger/test/csuite/incr_backup/main.c b/src/third_party/wiredtiger/test/csuite/incr_backup/main.c
index 28c929abf42..32e8e2f0dc2 100644
--- a/src/third_party/wiredtiger/test/csuite/incr_backup/main.c
+++ b/src/third_party/wiredtiger/test/csuite/incr_backup/main.c
@@ -158,6 +158,10 @@ die(void)
/*
* Get operation type based on the number of changes
*/
+/*
+ * get_operation_type --
+ * TODO: Add a comment describing this function.
+ */
static OPERATION_TYPE
get_operation_type(uint64_t change_count)
{
@@ -456,6 +460,10 @@ create_table(WT_SESSION *session, WT_RAND_STATE *rand, TABLE_INFO *tinfo, uint32
tinfo->tables_in_use++;
}
+/*
+ * rename_table --
+ * TODO: Add a comment describing this function.
+ */
static void
rename_table(WT_SESSION *session, TABLE_INFO *tinfo, uint32_t slot)
{
@@ -473,6 +481,10 @@ rename_table(WT_SESSION *session, TABLE_INFO *tinfo, uint32_t slot)
tinfo->table[slot].name = uri;
}
+/*
+ * drop_table --
+ * TODO: Add a comment describing this function.
+ */
static void
drop_table(WT_SESSION *session, TABLE_INFO *tinfo, uint32_t slot)
{
@@ -508,6 +520,10 @@ tables_free(TABLE_INFO *tinfo)
tinfo->table = NULL;
}
+/*
+ * base_backup --
+ * TODO: Add a comment describing this function.
+ */
static void
base_backup(WT_CONNECTION *conn, WT_RAND_STATE *rand, const char *home, const char *backup_home,
TABLE_INFO *tinfo, ACTIVE_FILES *active)
@@ -573,6 +589,10 @@ base_backup(WT_CONNECTION *conn, WT_RAND_STATE *rand, const char *home, const ch
* Open a file if it isn't already open. The "memory" of the open file name is kept in the buffer
* passed in.
*/
+/*
+ * reopen_file --
+ * TODO: Add a comment describing this function.
+ */
static void
reopen_file(int *fdp, char *buf, size_t buflen, const char *filename, int oflag)
{
@@ -589,6 +609,10 @@ reopen_file(int *fdp, char *buf, size_t buflen, const char *filename, int oflag)
/*
* Perform an incremental backup into an existing backup directory.
*/
+/*
+ * incr_backup --
+ * TODO: Add a comment describing this function.
+ */
static void
incr_backup(WT_CONNECTION *conn, const char *home, const char *backup_home, TABLE_INFO *tinfo,
ACTIVE_FILES *current_active)
@@ -687,6 +711,10 @@ incr_backup(WT_CONNECTION *conn, const char *home, const char *backup_home, TABL
active_files_move(current_active, &active);
}
+/*
+ * check_table --
+ * TODO: Add a comment describing this function.
+ */
static void
check_table(WT_SESSION *session, TABLE *table)
{
@@ -763,6 +791,10 @@ check_table(WT_SESSION *session, TABLE *table)
/*
* Verify the backup to make sure the proper tables exist and have the correct content.
*/
+/*
+ * check_backup --
+ * TODO: Add a comment describing this function.
+ */
static void
check_backup(const char *backup_home, const char *backup_check, TABLE_INFO *tinfo)
{
@@ -790,6 +822,10 @@ check_backup(const char *backup_home, const char *backup_check, TABLE_INFO *tinf
testutil_check(conn->close(conn, NULL));
}
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/test/csuite/random_abort/main.c b/src/third_party/wiredtiger/test/csuite/random_abort/main.c
index 0accd626a87..793293d3fd7 100644
--- a/src/third_party/wiredtiger/test/csuite/random_abort/main.c
+++ b/src/third_party/wiredtiger/test/csuite/random_abort/main.c
@@ -87,6 +87,10 @@ static bool inmem;
static void handler(int) WT_GCC_FUNC_DECL_ATTRIBUTE((noreturn));
static void usage(void) WT_GCC_FUNC_DECL_ATTRIBUTE((noreturn));
+/*
+ * usage --
+ * TODO: Add a comment describing this function.
+ */
static void
usage(void)
{
@@ -100,6 +104,10 @@ typedef struct {
uint32_t id;
} WT_THREAD_DATA;
+/*
+ * thread_run --
+ * TODO: Add a comment describing this function.
+ */
static WT_THREAD_RET
thread_run(void *arg)
{
@@ -300,6 +308,10 @@ thread_run(void *arg)
* it is killed by the parent.
*/
static void fill_db(uint32_t) WT_GCC_FUNC_DECL_ATTRIBUTE((noreturn));
+/*
+ * fill_db --
+ * TODO: Add a comment describing this function.
+ */
static void
fill_db(uint32_t nth)
{
@@ -352,6 +364,10 @@ fill_db(uint32_t nth)
extern int __wt_optind;
extern char *__wt_optarg;
+/*
+ * handler --
+ * TODO: Add a comment describing this function.
+ */
static void
handler(int sig)
{
@@ -365,6 +381,10 @@ handler(int sig)
testutil_die(EINVAL, "Child process %" PRIu64 " abnormally exited", (uint64_t)pid);
}
+/*
+ * recover_and_verify --
+ * TODO: Add a comment describing this function.
+ */
static int
recover_and_verify(uint32_t nthreads)
{
@@ -604,6 +624,10 @@ recover_and_verify(uint32_t nthreads)
return (EXIT_SUCCESS);
}
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/test/csuite/random_directio/main.c b/src/third_party/wiredtiger/test/csuite/random_directio/main.c
index 22c5021a9a2..9a6c2cf596c 100644
--- a/src/third_party/wiredtiger/test/csuite/random_directio/main.c
+++ b/src/third_party/wiredtiger/test/csuite/random_directio/main.c
@@ -198,6 +198,10 @@ typedef struct {
* Print usage and exit.
*/
static void usage(void) WT_GCC_FUNC_DECL_ATTRIBUTE((noreturn));
+/*
+ * usage --
+ * TODO: Add a comment describing this function.
+ */
static void
usage(void)
{
@@ -337,6 +341,10 @@ gen_table2_name(char *buf, size_t buf_size, uint64_t id, uint32_t threadid, uint
testutil_check(__wt_snprintf(buf, buf_size, "table:B%" PRIu64 "-%" PRIu32, id, threadid));
}
+/*
+ * schema_operation --
+ * TODO: Add a comment describing this function.
+ */
static int
schema_operation(WT_SESSION *session, uint32_t threadid, uint64_t id, uint32_t op, uint32_t flags)
{
@@ -438,6 +446,10 @@ schema_operation(WT_SESSION *session, uint32_t threadid, uint64_t id, uint32_t o
* Run a writer thread.
*/
static WT_THREAD_RET thread_run(void *) WT_GCC_FUNC_DECL_ATTRIBUTE((noreturn));
+/*
+ * thread_run --
+ * TODO: Add a comment describing this function.
+ */
static WT_THREAD_RET
thread_run(void *arg)
{
@@ -580,6 +592,10 @@ create_db(const char *method)
*/
static void fill_db(uint32_t, uint32_t, const char *, uint32_t)
WT_GCC_FUNC_DECL_ATTRIBUTE((noreturn));
+/*
+ * fill_db --
+ * TODO: Add a comment describing this function.
+ */
static void
fill_db(uint32_t nth, uint32_t datasize, const char *method, uint32_t flags)
{
@@ -687,6 +703,10 @@ check_empty(WT_SESSION *session, const char *uri)
* check_empty --
* Check that the uri exists and has one entry.
*/
+/*
+ * check_one_entry --
+ * TODO: Add a comment describing this function.
+ */
static void
check_one_entry(WT_SESSION *session, const char *uri, const char *key, const char *value)
{
@@ -710,6 +730,10 @@ check_one_entry(WT_SESSION *session, const char *uri, const char *key, const cha
* Check that the database has the expected schema according to the
* last id seen for this thread.
*/
+/*
+ * check_schema --
+ * TODO: Add a comment describing this function.
+ */
static void
check_schema(WT_SESSION *session, uint64_t lastid, uint32_t threadid, uint32_t flags)
{
@@ -765,6 +789,10 @@ check_schema(WT_SESSION *session, uint64_t lastid, uint32_t threadid, uint32_t f
}
}
+/*
+ * kill_child --
+ * TODO: Add a comment describing this function.
+ */
static void
kill_child(pid_t pid)
{
diff --git a/src/third_party/wiredtiger/test/csuite/rwlock/main.c b/src/third_party/wiredtiger/test/csuite/rwlock/main.c
index e800c7c0c3f..f0f5f15a260 100644
--- a/src/third_party/wiredtiger/test/csuite/rwlock/main.c
+++ b/src/third_party/wiredtiger/test/csuite/rwlock/main.c
@@ -46,6 +46,10 @@ static uint64_t shared_counter;
void *thread_rwlock(void *);
void *thread_dump(void *);
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
@@ -90,6 +94,10 @@ main(int argc, char *argv[])
/*
* Acquire a rwlock, every Nth operation, acquire exclusive.
*/
+/*
+ * thread_rwlock --
+ * TODO: Add a comment describing this function.
+ */
void *
thread_rwlock(void *arg)
{
@@ -156,6 +164,10 @@ thread_rwlock(void *arg)
return (NULL);
}
+/*
+ * thread_dump --
+ * TODO: Add a comment describing this function.
+ */
void *
thread_dump(void *arg)
{
diff --git a/src/third_party/wiredtiger/test/csuite/schema_abort/main.c b/src/third_party/wiredtiger/test/csuite/schema_abort/main.c
index ac8eecee678..854b4c4d06e 100644
--- a/src/third_party/wiredtiger/test/csuite/schema_abort/main.c
+++ b/src/third_party/wiredtiger/test/csuite/schema_abort/main.c
@@ -129,6 +129,10 @@ typedef struct {
static void sig_handler(int) WT_GCC_FUNC_DECL_ATTRIBUTE((noreturn));
static void usage(void) WT_GCC_FUNC_DECL_ATTRIBUTE((noreturn));
+/*
+ * usage --
+ * TODO: Add a comment describing this function.
+ */
static void
usage(void)
{
@@ -171,6 +175,10 @@ static WT_EVENT_HANDLER event_handler = {
* that we can verify the state of the schema too.
*/
+/*
+ * dump_ts --
+ * TODO: Add a comment describing this function.
+ */
static void
dump_ts(uint64_t nth)
{
@@ -764,6 +772,10 @@ thread_run(void *arg)
* it is killed by the parent.
*/
static void run_workload(uint32_t) WT_GCC_FUNC_DECL_ATTRIBUTE((noreturn));
+/*
+ * run_workload --
+ * TODO: Add a comment describing this function.
+ */
static void
run_workload(uint32_t nth)
{
@@ -846,6 +858,10 @@ extern char *__wt_optarg;
/*
* Initialize a report structure. Since zero is a valid key we cannot just clear it.
*/
+/*
+ * initialize_rep --
+ * TODO: Add a comment describing this function.
+ */
static void
initialize_rep(REPORT *r)
{
@@ -857,6 +873,10 @@ initialize_rep(REPORT *r)
* Print out information if we detect missing records in the middle of the data of a report
* structure.
*/
+/*
+ * print_missing --
+ * TODO: Add a comment describing this function.
+ */
static void
print_missing(REPORT *r, const char *fname, const char *msg)
{
@@ -870,6 +890,10 @@ print_missing(REPORT *r, const char *fname, const char *msg)
/*
* Signal handler to catch if the child died unexpectedly.
*/
+/*
+ * sig_handler --
+ * TODO: Add a comment describing this function.
+ */
static void
sig_handler(int sig)
{
@@ -883,6 +907,10 @@ sig_handler(int sig)
testutil_die(EINVAL, "Child process %" PRIu64 " abnormally exited", (uint64_t)pid);
}
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/test/csuite/scope/main.c b/src/third_party/wiredtiger/test/csuite/scope/main.c
index 0f9a5e972ec..eecdf9e47f4 100644
--- a/src/third_party/wiredtiger/test/csuite/scope/main.c
+++ b/src/third_party/wiredtiger/test/csuite/scope/main.c
@@ -32,6 +32,10 @@
static int ignore_errors;
+/*
+ * handle_error --
+ * TODO: Add a comment describing this function.
+ */
static int
handle_error(WT_EVENT_HANDLER *handler, WT_SESSION *session, int error, const char *message)
{
@@ -71,6 +75,10 @@ static WT_EVENT_HANDLER event_handler = {handle_error, NULL, NULL, NULL};
} \
} while (0)
+/*
+ * cursor_scope_ops --
+ * TODO: Add a comment describing this function.
+ */
static void
cursor_scope_ops(WT_SESSION *session, const char *uri)
{
@@ -337,6 +345,10 @@ cursor_scope_ops(WT_SESSION *session, const char *uri)
}
}
+/*
+ * run --
+ * TODO: Add a comment describing this function.
+ */
static void
run(WT_CONNECTION *conn, const char *uri, const char *config)
{
@@ -348,6 +360,10 @@ run(WT_CONNECTION *conn, const char *uri, const char *config)
testutil_check(session->close(session, NULL));
}
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/test/csuite/tiered_abort/main.c b/src/third_party/wiredtiger/test/csuite/tiered_abort/main.c
index ebee074c765..f928f4f442f 100644
--- a/src/third_party/wiredtiger/test/csuite/tiered_abort/main.c
+++ b/src/third_party/wiredtiger/test/csuite/tiered_abort/main.c
@@ -137,6 +137,10 @@ static pthread_rwlock_t ts_lock;
static void handler(int) WT_GCC_FUNC_DECL_ATTRIBUTE((noreturn));
static void usage(void) WT_GCC_FUNC_DECL_ATTRIBUTE((noreturn));
+/*
+ * usage --
+ * TODO: Add a comment describing this function.
+ */
static void
usage(void)
{
@@ -420,6 +424,10 @@ rollback:
* it is killed by the parent.
*/
static void run_workload(uint32_t, const char *) WT_GCC_FUNC_DECL_ATTRIBUTE((noreturn));
+/*
+ * run_workload --
+ * TODO: Add a comment describing this function.
+ */
static void
run_workload(uint32_t nth, const char *build_dir)
{
@@ -520,6 +528,10 @@ extern char *__wt_optarg;
/*
* Initialize a report structure. Since zero is a valid key we cannot just clear it.
*/
+/*
+ * initialize_rep --
+ * TODO: Add a comment describing this function.
+ */
static void
initialize_rep(REPORT *r)
{
@@ -531,6 +543,10 @@ initialize_rep(REPORT *r)
* Print out information if we detect missing records in the middle of the data of a report
* structure.
*/
+/*
+ * print_missing --
+ * TODO: Add a comment describing this function.
+ */
static void
print_missing(REPORT *r, const char *fname, const char *msg)
{
@@ -544,6 +560,10 @@ print_missing(REPORT *r, const char *fname, const char *msg)
/*
* Signal handler to catch if the child died unexpectedly.
*/
+/*
+ * handler --
+ * TODO: Add a comment describing this function.
+ */
static void
handler(int sig)
{
@@ -555,6 +575,10 @@ handler(int sig)
testutil_die(EINVAL, "Child process %" PRIu64 " abnormally exited", (uint64_t)pid);
}
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/test/csuite/timestamp_abort/main.c b/src/third_party/wiredtiger/test/csuite/timestamp_abort/main.c
index 457609cb114..f54f39daa9d 100644
--- a/src/third_party/wiredtiger/test/csuite/timestamp_abort/main.c
+++ b/src/third_party/wiredtiger/test/csuite/timestamp_abort/main.c
@@ -131,6 +131,10 @@ static pthread_rwlock_t ts_lock;
static void handler(int) WT_GCC_FUNC_DECL_ATTRIBUTE((noreturn));
static void usage(void) WT_GCC_FUNC_DECL_ATTRIBUTE((noreturn));
+/*
+ * usage --
+ * TODO: Add a comment describing this function.
+ */
static void
usage(void)
{
@@ -471,6 +475,10 @@ rollback:
* it is killed by the parent.
*/
static void run_workload(uint32_t) WT_GCC_FUNC_DECL_ATTRIBUTE((noreturn));
+/*
+ * run_workload --
+ * TODO: Add a comment describing this function.
+ */
static void
run_workload(uint32_t nth)
{
@@ -584,6 +592,10 @@ extern char *__wt_optarg;
/*
* Initialize a report structure. Since zero is a valid key we cannot just clear it.
*/
+/*
+ * initialize_rep --
+ * TODO: Add a comment describing this function.
+ */
static void
initialize_rep(REPORT *r)
{
@@ -595,6 +607,10 @@ initialize_rep(REPORT *r)
* Print out information if we detect missing records in the middle of the data of a report
* structure.
*/
+/*
+ * print_missing --
+ * TODO: Add a comment describing this function.
+ */
static void
print_missing(REPORT *r, const char *fname, const char *msg)
{
@@ -608,6 +624,10 @@ print_missing(REPORT *r, const char *fname, const char *msg)
/*
* Signal handler to catch if the child died unexpectedly.
*/
+/*
+ * handler --
+ * TODO: Add a comment describing this function.
+ */
static void
handler(int sig)
{
@@ -621,6 +641,10 @@ handler(int sig)
testutil_die(EINVAL, "Child process %" PRIu64 " abnormally exited", (uint64_t)pid);
}
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/test/csuite/truncated_log/main.c b/src/third_party/wiredtiger/test/csuite/truncated_log/main.c
index 1b86209a854..05dde6e2fc7 100644
--- a/src/third_party/wiredtiger/test/csuite/truncated_log/main.c
+++ b/src/third_party/wiredtiger/test/csuite/truncated_log/main.c
@@ -53,6 +53,10 @@ static bool use_columns = false;
* past that record.
*/
static void write_and_read_new(WT_SESSION *);
+/*
+ * write_and_read_new --
+ * TODO: Add a comment describing this function.
+ */
static void
write_and_read_new(WT_SESSION *session)
{
@@ -107,6 +111,10 @@ write_and_read_new(WT_SESSION *session)
}
static void usage(void) WT_GCC_FUNC_DECL_ATTRIBUTE((noreturn));
+/*
+ * usage --
+ * TODO: Add a comment describing this function.
+ */
static void
usage(void)
{
@@ -119,6 +127,10 @@ usage(void)
* switches into log file 2.
*/
static void fill_db(void) WT_GCC_FUNC_DECL_ATTRIBUTE((noreturn));
+/*
+ * fill_db --
+ * TODO: Add a comment describing this function.
+ */
static void
fill_db(void)
{
@@ -224,6 +236,10 @@ fill_db(void)
extern int __wt_optind;
extern char *__wt_optarg;
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/test/csuite/wt1965_col_efficiency/main.c b/src/third_party/wiredtiger/test/csuite/wt1965_col_efficiency/main.c
index ea4a39d8378..94164b86106 100644
--- a/src/third_party/wiredtiger/test/csuite/wt1965_col_efficiency/main.c
+++ b/src/third_party/wiredtiger/test/csuite/wt1965_col_efficiency/main.c
@@ -45,6 +45,10 @@ static uint64_t g_ts = 0;
* Each thread inserts a set of keys into the record store database. The keys are generated in such
* a way that there are large gaps in the key range.
*/
+/*
+ * thread_func --
+ * TODO: Add a comment describing this function.
+ */
static void *
thread_func(void *arg)
{
@@ -96,6 +100,10 @@ thread_func(void *arg)
return (NULL);
}
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/test/csuite/wt2246_col_append/main.c b/src/third_party/wiredtiger/test/csuite/wt2246_col_append/main.c
index 307f47578e3..4a1f40f51c8 100644
--- a/src/third_party/wiredtiger/test/csuite/wt2246_col_append/main.c
+++ b/src/third_party/wiredtiger/test/csuite/wt2246_col_append/main.c
@@ -43,6 +43,10 @@
/* Needs to be global for signal handling. */
static TEST_OPTS *opts, _opts;
+/*
+ * page_init --
+ * TODO: Add a comment describing this function.
+ */
static void
page_init(uint64_t n)
{
@@ -75,6 +79,10 @@ page_init(uint64_t n)
}
}
+/*
+ * onsig --
+ * TODO: Add a comment describing this function.
+ */
static void
onsig(int signo)
{
@@ -85,6 +93,10 @@ onsig(int signo)
#define N_APPEND_THREADS 6
#define N_RECORDS (20 * WT_MILLION)
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/test/csuite/wt2323_join_visibility/main.c b/src/third_party/wiredtiger/test/csuite/wt2323_join_visibility/main.c
index 5b84c1aee24..f7d5ef834bd 100644
--- a/src/third_party/wiredtiger/test/csuite/wt2323_join_visibility/main.c
+++ b/src/third_party/wiredtiger/test/csuite/wt2323_join_visibility/main.c
@@ -85,6 +85,10 @@ static void *thread_insert(void *);
static void *thread_join(void *);
static void test_join(TEST_OPTS *, SHARED_OPTS *, bool, bool);
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
@@ -128,6 +132,10 @@ main(int argc, char *argv[])
return (0);
}
+/*
+ * test_join --
+ * TODO: Add a comment describing this function.
+ */
static void
test_join(TEST_OPTS *opts, SHARED_OPTS *sharedopts, bool bloom, bool sometimes_remove)
{
@@ -213,6 +221,10 @@ test_join(TEST_OPTS *opts, SHARED_OPTS *sharedopts, bool bloom, bool sometimes_r
testutil_check(session->close(session, NULL));
}
+/*
+ * thread_insert --
+ * TODO: Add a comment describing this function.
+ */
static void *
thread_insert(void *arg)
{
@@ -307,6 +319,10 @@ thread_insert(void *arg)
return (NULL);
}
+/*
+ * thread_join --
+ * TODO: Add a comment describing this function.
+ */
static void *
thread_join(void *arg)
{
diff --git a/src/third_party/wiredtiger/test/csuite/wt2403_lsm_workload/main.c b/src/third_party/wiredtiger/test/csuite/wt2403_lsm_workload/main.c
index 0c1f5f2a0ae..3f8faf18f80 100644
--- a/src/third_party/wiredtiger/test/csuite/wt2403_lsm_workload/main.c
+++ b/src/third_party/wiredtiger/test/csuite/wt2403_lsm_workload/main.c
@@ -32,6 +32,10 @@ static const char name[] = "lsm:test";
#define NUM_DOCS 100000
#define NUM_QUERIES (NUM_DOCS / 100)
+/*
+ * rand_str --
+ * TODO: Add a comment describing this function.
+ */
static void
rand_str(uint64_t i, char *str)
{
@@ -44,6 +48,10 @@ rand_str(uint64_t i, char *str)
}
}
+/*
+ * check_str --
+ * TODO: Add a comment describing this function.
+ */
static void
check_str(uint64_t i, char *str, bool mod)
{
@@ -55,6 +63,10 @@ check_str(uint64_t i, char *str, bool mod)
testutil_checkfmt(strcmp(str, str2), "strcmp failed, got %s, expected %s", str, str2);
}
+/*
+ * query_docs --
+ * TODO: Add a comment describing this function.
+ */
static void
query_docs(WT_CURSOR *cursor, bool mod)
{
@@ -70,6 +82,10 @@ query_docs(WT_CURSOR *cursor, bool mod)
printf("%d documents read\n", NUM_QUERIES);
}
+/*
+ * compact_thread --
+ * TODO: Add a comment describing this function.
+ */
static void *
compact_thread(void *args)
{
@@ -80,6 +96,10 @@ compact_thread(void *args)
return (NULL);
}
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/test/csuite/wt2447_join_main_table/main.c b/src/third_party/wiredtiger/test/csuite/wt2447_join_main_table/main.c
index 67ce0c081c0..48f10203edb 100644
--- a/src/third_party/wiredtiger/test/csuite/wt2447_join_main_table/main.c
+++ b/src/third_party/wiredtiger/test/csuite/wt2447_join_main_table/main.c
@@ -51,6 +51,10 @@
#define N_RECORDS 10000
+/*
+ * get_stat_total --
+ * TODO: Add a comment describing this function.
+ */
static void
get_stat_total(WT_SESSION *session, WT_CURSOR *jcursor, const char *descmatch, uint64_t *pval)
{
@@ -79,6 +83,10 @@ get_stat_total(WT_SESSION *session, WT_CURSOR *jcursor, const char *descmatch, u
testutil_assert(match);
}
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/test/csuite/wt2535_insert_race/main.c b/src/third_party/wiredtiger/test/csuite/wt2535_insert_race/main.c
index 4bc8b7d985e..ca04d2d8d84 100644
--- a/src/third_party/wiredtiger/test/csuite/wt2535_insert_race/main.c
+++ b/src/third_party/wiredtiger/test/csuite/wt2535_insert_race/main.c
@@ -80,6 +80,10 @@ get_value(TEST_OPTS *opts, WT_CURSOR *c)
}
}
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
@@ -149,6 +153,10 @@ main(int argc, char *argv[])
* Append to a table in a "racy" fashion - that is attempt to insert the same record another thread
* is likely to also be inserting.
*/
+/*
+ * thread_insert_race --
+ * TODO: Add a comment describing this function.
+ */
void *
thread_insert_race(void *arg)
{
diff --git a/src/third_party/wiredtiger/test/csuite/wt2592_join_schema/main.c b/src/third_party/wiredtiger/test/csuite/wt2592_join_schema/main.c
index 420a7c2be32..2592ce00e77 100644
--- a/src/third_party/wiredtiger/test/csuite/wt2592_join_schema/main.c
+++ b/src/third_party/wiredtiger/test/csuite/wt2592_join_schema/main.c
@@ -46,6 +46,10 @@ static POP_RECORD pop_data[] = {{"AU", 1900, 4000000}, {"AU", 1950, 8267337},
{"UK", 1900, 369000000}, {"UK", 1950, 50127000}, {"UK", 2000, 59522468}, {"USA", 1900, 76212168},
{"USA", 1950, 150697361}, {"USA", 2000, 301279593}, {"", 0, 0}};
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/test/csuite/wt2695_checksum/main.c b/src/third_party/wiredtiger/test/csuite/wt2695_checksum/main.c
index 25f32f71230..32b27840762 100644
--- a/src/third_party/wiredtiger/test/csuite/wt2695_checksum/main.c
+++ b/src/third_party/wiredtiger/test/csuite/wt2695_checksum/main.c
@@ -31,6 +31,10 @@
* JIRA ticket reference: WT-2695 Test case description: Smoke-test the CRC.
*/
+/*
+ * check --
+ * TODO: Add a comment describing this function.
+ */
static inline void
check(uint32_t hw, uint32_t sw, size_t len, const char *msg)
{
@@ -39,6 +43,10 @@ check(uint32_t hw, uint32_t sw, size_t len, const char *msg)
}
#define DATASIZE (128 * 1024)
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/test/csuite/wt2719_reconfig/main.c b/src/third_party/wiredtiger/test/csuite/wt2719_reconfig/main.c
index 27d1a58ccbd..ea5590f047a 100644
--- a/src/third_party/wiredtiger/test/csuite/wt2719_reconfig/main.c
+++ b/src/third_party/wiredtiger/test/csuite/wt2719_reconfig/main.c
@@ -96,6 +96,10 @@ static const char *const list[] = {",cache_overhead=13", ",cache_overhead=27", "
",verbose=(\"split\")", ",verbose=(\"transaction\")", ",verbose=(\"verify\")",
",verbose=(\"version\")", ",verbose=(\"write\")", ",verbose=()"};
+/*
+ * handle_message --
+ * TODO: Add a comment describing this function.
+ */
static int
handle_message(WT_EVENT_HANDLER *handler, WT_SESSION *session, const char *message)
{
@@ -112,6 +116,10 @@ static WT_EVENT_HANDLER event_handler = {NULL, handle_message, NULL, NULL};
static const char *current; /* Current test configuration */
static void on_alarm(int) WT_GCC_FUNC_DECL_ATTRIBUTE((noreturn));
+/*
+ * on_alarm --
+ * TODO: Add a comment describing this function.
+ */
static void
on_alarm(int signo)
{
@@ -123,6 +131,10 @@ on_alarm(int signo)
/* NOTREACHED */
}
+/*
+ * reconfig --
+ * TODO: Add a comment describing this function.
+ */
static void
reconfig(TEST_OPTS *opts, WT_SESSION *session, const char *config)
{
@@ -142,6 +154,10 @@ reconfig(TEST_OPTS *opts, WT_SESSION *session, const char *config)
(void)alarm(0);
}
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/test/csuite/wt2834_join_bloom_fix/main.c b/src/third_party/wiredtiger/test/csuite/wt2834_join_bloom_fix/main.c
index 121a1f4c611..fe64ff34c8c 100644
--- a/src/third_party/wiredtiger/test/csuite/wt2834_join_bloom_fix/main.c
+++ b/src/third_party/wiredtiger/test/csuite/wt2834_join_bloom_fix/main.c
@@ -44,6 +44,10 @@
void populate(TEST_OPTS *opts);
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
@@ -147,6 +151,10 @@ main(int argc, char *argv[])
return (EXIT_SUCCESS);
}
+/*
+ * populate --
+ * TODO: Add a comment describing this function.
+ */
void
populate(TEST_OPTS *opts)
{
diff --git a/src/third_party/wiredtiger/test/csuite/wt2853_perf/main.c b/src/third_party/wiredtiger/test/csuite/wt2853_perf/main.c
index 9dff68e1076..e4a3659aac8 100644
--- a/src/third_party/wiredtiger/test/csuite/wt2853_perf/main.c
+++ b/src/third_party/wiredtiger/test/csuite/wt2853_perf/main.c
@@ -75,6 +75,10 @@ typedef struct {
int nfail;
} THREAD_ARGS;
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
@@ -214,6 +218,10 @@ main(int argc, char *argv[])
return (0);
}
+/*
+ * thread_insert --
+ * TODO: Add a comment describing this function.
+ */
static void *
thread_insert(void *arg)
{
@@ -289,6 +297,10 @@ thread_insert(void *arg)
return (NULL);
}
+/*
+ * thread_get --
+ * TODO: Add a comment describing this function.
+ */
static void *
thread_get(void *arg)
{
diff --git a/src/third_party/wiredtiger/test/csuite/wt2999_join_extractor/main.c b/src/third_party/wiredtiger/test/csuite/wt2999_join_extractor/main.c
index 22b05deca31..2c5213547b5 100644
--- a/src/third_party/wiredtiger/test/csuite/wt2999_join_extractor/main.c
+++ b/src/third_party/wiredtiger/test/csuite/wt2999_join_extractor/main.c
@@ -37,6 +37,10 @@
* Failure mode: When a custom extractor is used with cursor joins, there are memory leaks at the
* point where the extractor sets the key.
*/
+/*
+ * custom_extract1 --
+ * TODO: Add a comment describing this function.
+ */
static int
custom_extract1(WT_EXTRACTOR *extractor, WT_SESSION *session, const WT_ITEM *key,
const WT_ITEM *value, WT_CURSOR *result_cursor)
@@ -56,6 +60,10 @@ custom_extract1(WT_EXTRACTOR *extractor, WT_SESSION *session, const WT_ITEM *key
return (result_cursor->insert(result_cursor));
}
+/*
+ * custom_extract2 --
+ * TODO: Add a comment describing this function.
+ */
static int
custom_extract2(WT_EXTRACTOR *extractor, WT_SESSION *session, const WT_ITEM *key,
const WT_ITEM *value, WT_CURSOR *result_cursor)
@@ -78,6 +86,10 @@ custom_extract2(WT_EXTRACTOR *extractor, WT_SESSION *session, const WT_ITEM *key
static WT_EXTRACTOR custom_extractor1 = {custom_extract1, NULL, NULL};
static WT_EXTRACTOR custom_extractor2 = {custom_extract2, NULL, NULL};
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/test/csuite/wt3120_filesys/main.c b/src/third_party/wiredtiger/test/csuite/wt3120_filesys/main.c
index 140d24d55d1..13a7c858ada 100644
--- a/src/third_party/wiredtiger/test/csuite/wt3120_filesys/main.c
+++ b/src/third_party/wiredtiger/test/csuite/wt3120_filesys/main.c
@@ -33,6 +33,10 @@
* evoke the failure. This test does slightly more than that.
*/
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/test/csuite/wt3135_search_near_collator/main.c b/src/third_party/wiredtiger/test/csuite/wt3135_search_near_collator/main.c
index 3c433253f1a..35d1ba98e97 100644
--- a/src/third_party/wiredtiger/test/csuite/wt3135_search_near_collator/main.c
+++ b/src/third_party/wiredtiger/test/csuite/wt3135_search_near_collator/main.c
@@ -43,18 +43,30 @@ static TEST_SET test_sets[] = {{"0", "01", "012", "0123", "01234"}, {"A", "B", "
{"5", "54", "543", "5432", "54321"}, {"54321", "5433", "544", "55", "6"}};
#define TEST_SET_COUNT (sizeof(test_sets) / sizeof(test_sets[0]))
+/*
+ * item_str_equal --
+ * TODO: Add a comment describing this function.
+ */
static bool
item_str_equal(WT_ITEM *item, const char *str)
{
return (item->size == strlen(str) + 1 && strncmp((char *)item->data, str, item->size) == 0);
}
+/*
+ * compare_int --
+ * TODO: Add a comment describing this function.
+ */
static int
compare_int(int64_t a, int64_t b)
{
return (a < b ? -1 : (a > b ? 1 : 0));
}
+/*
+ * index_compare_primary --
+ * TODO: Add a comment describing this function.
+ */
static int
index_compare_primary(WT_PACK_STREAM *s1, WT_PACK_STREAM *s2, int *cmp)
{
@@ -75,6 +87,10 @@ index_compare_primary(WT_PACK_STREAM *s1, WT_PACK_STREAM *s2, int *cmp)
return (0);
}
+/*
+ * index_compare_S --
+ * TODO: Add a comment describing this function.
+ */
static int
index_compare_S(
WT_COLLATOR *collator, WT_SESSION *session, const WT_ITEM *key1, const WT_ITEM *key2, int *cmp)
@@ -99,6 +115,10 @@ index_compare_S(
return (0);
}
+/*
+ * index_compare_u --
+ * TODO: Add a comment describing this function.
+ */
static int
index_compare_u(
WT_COLLATOR *collator, WT_SESSION *session, const WT_ITEM *key1, const WT_ITEM *key2, int *cmp)
@@ -123,6 +143,10 @@ index_compare_u(
return (0);
}
+/*
+ * index_extractor_u --
+ * TODO: Add a comment describing this function.
+ */
static int
index_extractor_u(WT_EXTRACTOR *extractor, WT_SESSION *session, const WT_ITEM *key,
const WT_ITEM *value, WT_CURSOR *result_cursor)
@@ -142,6 +166,10 @@ static WT_EXTRACTOR extractor_u = {index_extractor_u, NULL, NULL};
/*
* Check search() and search_near() using the test string indicated by test_index.
*/
+/*
+ * search_using_str --
+ * TODO: Add a comment describing this function.
+ */
static void
search_using_str(WT_CURSOR *cursor, TEST_SET test_set, int test_index)
{
@@ -183,6 +211,10 @@ search_using_str(WT_CURSOR *cursor, TEST_SET test_set, int test_index)
* Check search() and search_near() using the test string indicated by test_index against a table
* containing a variable sized item.
*/
+/*
+ * search_using_item --
+ * TODO: Add a comment describing this function.
+ */
static void
search_using_item(WT_CURSOR *cursor, TEST_SET test_set, int test_index)
{
@@ -229,6 +261,10 @@ search_using_item(WT_CURSOR *cursor, TEST_SET test_set, int test_index)
/*
* For each set of data, perform tests.
*/
+/*
+ * test_one_set --
+ * TODO: Add a comment describing this function.
+ */
static void
test_one_set(WT_SESSION *session, TEST_SET set)
{
@@ -304,6 +340,10 @@ test_one_set(WT_SESSION *session, TEST_SET set)
testutil_check(session->drop(session, "table:main2", NULL));
}
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/test/csuite/wt3184_dup_index_collator/main.c b/src/third_party/wiredtiger/test/csuite/wt3184_dup_index_collator/main.c
index ac05151f257..5c438fd0430 100644
--- a/src/third_party/wiredtiger/test/csuite/wt3184_dup_index_collator/main.c
+++ b/src/third_party/wiredtiger/test/csuite/wt3184_dup_index_collator/main.c
@@ -37,12 +37,20 @@
* a key.
*/
+/*
+ * compare_int --
+ * TODO: Add a comment describing this function.
+ */
static int
compare_int(int32_t a, int32_t b)
{
return (a < b ? -1 : (a > b ? 1 : 0));
}
+/*
+ * item_to_int --
+ * TODO: Add a comment describing this function.
+ */
static int32_t
item_to_int(const WT_ITEM *item)
{
@@ -58,6 +66,10 @@ item_to_int(const WT_ITEM *item)
return ret;
}
+/*
+ * compare_int_items --
+ * TODO: Add a comment describing this function.
+ */
static int
compare_int_items(WT_ITEM *itema, WT_ITEM *itemb)
{
@@ -66,6 +78,10 @@ compare_int_items(WT_ITEM *itema, WT_ITEM *itemb)
return (compare_int(item_to_int(itema), item_to_int(itemb)));
}
+/*
+ * print_int_item --
+ * TODO: Add a comment describing this function.
+ */
static void
print_int_item(const char *str, const WT_ITEM *item)
{
@@ -75,6 +91,10 @@ print_int_item(const char *str, const WT_ITEM *item)
printf("%s<empty>", str);
}
+/*
+ * index_compare --
+ * TODO: Add a comment describing this function.
+ */
static int
index_compare(
WT_COLLATOR *collator, WT_SESSION *session, const WT_ITEM *key1, const WT_ITEM *key2, int *cmp)
@@ -108,6 +128,10 @@ index_compare(
static WT_COLLATOR index_coll = {index_compare, NULL, NULL};
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/test/csuite/wt3338_partial_update/main.c b/src/third_party/wiredtiger/test/csuite/wt3338_partial_update/main.c
index 569339eb4af..17da54f5fa7 100644
--- a/src/third_party/wiredtiger/test/csuite/wt3338_partial_update/main.c
+++ b/src/third_party/wiredtiger/test/csuite/wt3338_partial_update/main.c
@@ -155,6 +155,10 @@ compare(WT_ITEM *orig, WT_ITEM *local, WT_ITEM *library)
* should match the modified value that was used as input to the
* calculate-modify API.
*/
+/*
+ * modify_run --
+ * TODO: Add a comment describing this function.
+ */
static void
modify_run(TEST_OPTS *opts)
{
@@ -240,6 +244,10 @@ modify_run(TEST_OPTS *opts)
__wt_buf_free(session, &modtmp);
}
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/test/csuite/wt3363_checkpoint_op_races/main.c b/src/third_party/wiredtiger/test/csuite/wt3363_checkpoint_op_races/main.c
index 069f2c5a5fe..c229d62e24e 100644
--- a/src/third_party/wiredtiger/test/csuite/wt3363_checkpoint_op_races/main.c
+++ b/src/third_party/wiredtiger/test/csuite/wt3363_checkpoint_op_races/main.c
@@ -68,6 +68,10 @@ static WT_THREAD_RET monitor(void *);
static WT_EVENT_HANDLER event_handler = {handle_op_error, handle_op_message, NULL, NULL};
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
@@ -123,6 +127,10 @@ main(int argc, char *argv[])
/*
* Function for repeatedly running checkpoint operations.
*/
+/*
+ * do_checkpoints --
+ * TODO: Add a comment describing this function.
+ */
static WT_THREAD_RET
do_checkpoints(void *_opts)
{
@@ -159,6 +167,10 @@ do_checkpoints(void *_opts)
* Function to monitor running operations and abort to dump core in the event that we catch an
* operation running long.
*/
+/*
+ * monitor --
+ * TODO: Add a comment describing this function.
+ */
static WT_THREAD_RET
monitor(void *args)
{
@@ -209,6 +221,10 @@ monitor(void *args)
/*
* Worker thread. Executes random operations from the set of 6.
*/
+/*
+ * do_ops --
+ * TODO: Add a comment describing this function.
+ */
static WT_THREAD_RET
do_ops(void *args)
{
diff --git a/src/third_party/wiredtiger/test/csuite/wt3874_pad_byte_collator/main.c b/src/third_party/wiredtiger/test/csuite/wt3874_pad_byte_collator/main.c
index ca1728257d9..6b817873e53 100644
--- a/src/third_party/wiredtiger/test/csuite/wt3874_pad_byte_collator/main.c
+++ b/src/third_party/wiredtiger/test/csuite/wt3874_pad_byte_collator/main.c
@@ -37,6 +37,10 @@
#define KEY_SIZE 20
+/*
+ * my_compare --
+ * TODO: Add a comment describing this function.
+ */
static int
my_compare(
WT_COLLATOR *collator, WT_SESSION *session, const WT_ITEM *v1, const WT_ITEM *v2, int *cmp)
@@ -52,6 +56,10 @@ my_compare(
static WT_COLLATOR my_coll = {my_compare, NULL, NULL};
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/test/csuite/wt4105_large_doc_small_upd/main.c b/src/third_party/wiredtiger/test/csuite/wt4105_large_doc_small_upd/main.c
index 285d347ca8c..9bcfac7af83 100644
--- a/src/third_party/wiredtiger/test/csuite/wt4105_large_doc_small_upd/main.c
+++ b/src/third_party/wiredtiger/test/csuite/wt4105_large_doc_small_upd/main.c
@@ -36,6 +36,10 @@ static const char *const uri = "table:large";
#define NUM_DOCS 2
static void on_alarm(int) WT_GCC_FUNC_DECL_ATTRIBUTE((noreturn));
+/*
+ * on_alarm --
+ * TODO: Add a comment describing this function.
+ */
static void
on_alarm(int signo)
{
@@ -48,6 +52,10 @@ on_alarm(int signo)
static int ignore_errors = 0;
+/*
+ * handle_error --
+ * TODO: Add a comment describing this function.
+ */
static int
handle_error(WT_EVENT_HANDLER *handler, WT_SESSION *session, int error, const char *message)
{
@@ -67,6 +75,10 @@ handle_error(WT_EVENT_HANDLER *handler, WT_SESSION *session, int error, const ch
static WT_EVENT_HANDLER event_handler = {handle_error, NULL, NULL, NULL};
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/test/csuite/wt4117_checksum/main.c b/src/third_party/wiredtiger/test/csuite/wt4117_checksum/main.c
index b0f0f12c7ab..ff417e72c93 100644
--- a/src/third_party/wiredtiger/test/csuite/wt4117_checksum/main.c
+++ b/src/third_party/wiredtiger/test/csuite/wt4117_checksum/main.c
@@ -31,6 +31,10 @@
* JIRA ticket reference: WT-4117 Test case description: Smoke-test the CRC32C external API.
*/
+/*
+ * check --
+ * TODO: Add a comment describing this function.
+ */
static inline void
check(uint32_t crc32c, uint32_t expected, size_t len, const char *msg)
{
@@ -39,6 +43,10 @@ check(uint32_t crc32c, uint32_t expected, size_t len, const char *msg)
expected);
}
+/*
+ * run --
+ * TODO: Add a comment describing this function.
+ */
static void
run(void)
{
@@ -84,6 +92,10 @@ run(void)
free(data);
}
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(void)
{
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[])
{
diff --git a/src/third_party/wiredtiger/test/csuite/wt4333_handle_locks/main.c b/src/third_party/wiredtiger/test/csuite/wt4333_handle_locks/main.c
index b03a0d14a16..8c08cdb977f 100644
--- a/src/third_party/wiredtiger/test/csuite/wt4333_handle_locks/main.c
+++ b/src/third_party/wiredtiger/test/csuite/wt4333_handle_locks/main.c
@@ -42,6 +42,10 @@ static char *uri_list[750];
static char home[HOME_LEN];
extern char *__wt_optarg;
+/*
+ * uri_init --
+ * TODO: Add a comment describing this function.
+ */
static void
uri_init(void)
{
@@ -79,6 +83,10 @@ uri_init(void)
testutil_check(session->close(session, NULL));
}
+/*
+ * uri_teardown --
+ * TODO: Add a comment describing this function.
+ */
static void
uri_teardown(void)
{
@@ -88,6 +96,10 @@ uri_teardown(void)
free(uri_list[i]);
}
+/*
+ * op --
+ * TODO: Add a comment describing this function.
+ */
static void
op(WT_SESSION *session, WT_RAND_STATE *rnd, WT_CURSOR **cpp)
{
@@ -148,6 +160,10 @@ op(WT_SESSION *session, WT_RAND_STATE *rnd, WT_CURSOR **cpp)
(void)__wt_atomic_add64(&worker, 1);
}
+/*
+ * wthread --
+ * TODO: Add a comment describing this function.
+ */
static void *
wthread(void *arg)
{
@@ -172,6 +188,10 @@ wthread(void *arg)
return (NULL);
}
+/*
+ * vthread --
+ * TODO: Add a comment describing this function.
+ */
static void *
vthread(void *arg)
{
@@ -210,6 +230,10 @@ vthread(void *arg)
return (NULL);
}
+/*
+ * on_alarm --
+ * TODO: Add a comment describing this function.
+ */
static void
on_alarm(int signo)
{
@@ -218,6 +242,10 @@ on_alarm(int signo)
done = true;
}
+/*
+ * sweep_stats --
+ * TODO: Add a comment describing this function.
+ */
static void
sweep_stats(void)
{
@@ -246,6 +274,10 @@ sweep_stats(void)
}
}
+/*
+ * runone --
+ * TODO: Add a comment describing this function.
+ */
static void
runone(bool config_cache)
{
@@ -298,6 +330,10 @@ runone(bool config_cache)
testutil_check(conn->close(conn, NULL));
}
+/*
+ * run --
+ * TODO: Add a comment describing this function.
+ */
static int
run(int argc, char *argv[])
{
@@ -367,6 +403,10 @@ run(int argc, char *argv[])
return (EXIT_SUCCESS);
}
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/test/csuite/wt4699_json/main.c b/src/third_party/wiredtiger/test/csuite/wt4699_json/main.c
index b88ce7e7939..17786430b94 100644
--- a/src/third_party/wiredtiger/test/csuite/wt4699_json/main.c
+++ b/src/third_party/wiredtiger/test/csuite/wt4699_json/main.c
@@ -33,6 +33,10 @@
* configure parse error is returned.
*/
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/test/csuite/wt4803_history_store_abort/main.c b/src/third_party/wiredtiger/test/csuite/wt4803_history_store_abort/main.c
index fd15ec7095e..3587d24fbdc 100644
--- a/src/third_party/wiredtiger/test/csuite/wt4803_history_store_abort/main.c
+++ b/src/third_party/wiredtiger/test/csuite/wt4803_history_store_abort/main.c
@@ -46,6 +46,10 @@
*/
static bool expect_panic;
+/*
+ * 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)
{
@@ -74,6 +78,10 @@ handle_message(WT_EVENT_HANDLER *handler, WT_SESSION *session, int error, const
static WT_EVENT_HANDLER event_handler = {handle_message, NULL, NULL, NULL};
+/*
+ * hs_workload --
+ * TODO: Add a comment describing this function.
+ */
static void
hs_workload(TEST_OPTS *opts, const char *hs_file_max)
{
@@ -134,6 +142,10 @@ hs_workload(TEST_OPTS *opts, const char *hs_file_max)
testutil_check(opts->conn->close(opts->conn, NULL));
}
+/*
+ * test_hs_workload --
+ * TODO: Add a comment describing this function.
+ */
static void
test_hs_workload(TEST_OPTS *opts, const char *hs_file_max)
{
@@ -171,6 +183,10 @@ test_hs_workload(TEST_OPTS *opts, const char *hs_file_max)
testutil_assert(status == 0);
}
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char **argv)
{
diff --git a/src/third_party/wiredtiger/test/csuite/wt4891_meta_ckptlist_get_alloc/main.c b/src/third_party/wiredtiger/test/csuite/wt4891_meta_ckptlist_get_alloc/main.c
index 8dc1a71f3df..42322a8d1e0 100644
--- a/src/third_party/wiredtiger/test/csuite/wt4891_meta_ckptlist_get_alloc/main.c
+++ b/src/third_party/wiredtiger/test/csuite/wt4891_meta_ckptlist_get_alloc/main.c
@@ -34,6 +34,10 @@
* this test will cause an error in address sanitized builds.
*/
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/test/csuite/wt6185_modify_ts/main.c b/src/third_party/wiredtiger/test/csuite/wt6185_modify_ts/main.c
index f83ef2c35f8..5300d268882 100644
--- a/src/third_party/wiredtiger/test/csuite/wt6185_modify_ts/main.c
+++ b/src/third_party/wiredtiger/test/csuite/wt6185_modify_ts/main.c
@@ -73,6 +73,10 @@ static bool use_columns = false;
* Print usage message and exit.
*/
static void usage(void) WT_GCC_FUNC_DECL_ATTRIBUTE((noreturn));
+/*
+ * usage --
+ * TODO: Add a comment describing this function.
+ */
static void
usage(void)
{
@@ -270,6 +274,10 @@ repeat(WT_SESSION *session, WT_CURSOR *c)
* reset --
* Force eviction of the underlying page.
*/
+/*
+ * evict --
+ * TODO: Add a comment describing this function.
+ */
static void
evict(WT_CURSOR *c)
{
@@ -307,6 +315,10 @@ trace_die(void)
*__p = '.'; \
} while (0)
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/test/csuite/wt6616_checkpoint_oldest_ts/main.c b/src/third_party/wiredtiger/test/csuite/wt6616_checkpoint_oldest_ts/main.c
index 5b251da0fb2..6e49a950eb1 100644
--- a/src/third_party/wiredtiger/test/csuite/wt6616_checkpoint_oldest_ts/main.c
+++ b/src/third_party/wiredtiger/test/csuite/wt6616_checkpoint_oldest_ts/main.c
@@ -72,6 +72,10 @@ static const char *const ckpt_file = "checkpoint_done";
static void handler(int) WT_GCC_FUNC_DECL_ATTRIBUTE((noreturn));
static void usage(void) WT_GCC_FUNC_DECL_ATTRIBUTE((noreturn));
+/*
+ * usage --
+ * TODO: Add a comment describing this function.
+ */
static void
usage(void)
{
@@ -190,6 +194,10 @@ thread_run(void *arg)
* until it is killed by the parent.
*/
static void run_workload(void) WT_GCC_FUNC_DECL_ATTRIBUTE((noreturn));
+/*
+ * run_workload --
+ * TODO: Add a comment describing this function.
+ */
static void
run_workload(void)
{
@@ -234,6 +242,10 @@ run_workload(void)
/*
* Signal handler to catch if the child died unexpectedly.
*/
+/*
+ * handler --
+ * TODO: Add a comment describing this function.
+ */
static void
handler(int sig)
{
@@ -248,6 +260,10 @@ handler(int sig)
extern int __wt_optind;
extern char *__wt_optarg;
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/test/csuite/wt7989_compact_checkpoint/main.c b/src/third_party/wiredtiger/test/csuite/wt7989_compact_checkpoint/main.c
index b7898b2ca76..f6236a3de94 100644
--- a/src/third_party/wiredtiger/test/csuite/wt7989_compact_checkpoint/main.c
+++ b/src/third_party/wiredtiger/test/csuite/wt7989_compact_checkpoint/main.c
@@ -73,6 +73,10 @@ static void get_compact_progress(
WT_SESSION *session, const char *, uint64_t *, uint64_t *, uint64_t *);
/* Methods implementation. */
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
@@ -109,6 +113,10 @@ main(int argc, char *argv[])
return (EXIT_SUCCESS);
}
+/*
+ * run_test_clean --
+ * TODO: Add a comment describing this function.
+ */
static void
run_test_clean(bool stress_test, bool column_store, bool preserve, const char *home,
const char *suffix, const char *uri)
@@ -127,6 +135,10 @@ run_test_clean(bool stress_test, bool column_store, bool preserve, const char *h
testutil_clean_work_dir(home_full);
}
+/*
+ * run_test --
+ * TODO: Add a comment describing this function.
+ */
static void
run_test(bool stress_test, bool column_store, const char *home, const char *uri)
{
@@ -211,6 +223,10 @@ run_test(bool stress_test, bool column_store, const char *home, const char *uri)
testutil_assert(size_check_res);
}
+/*
+ * thread_func_compact --
+ * TODO: Add a comment describing this function.
+ */
static void *
thread_func_compact(void *arg)
{
@@ -236,6 +252,10 @@ thread_func_compact(void *arg)
return (NULL);
}
+/*
+ * wait_run_check --
+ * TODO: Add a comment describing this function.
+ */
static bool
wait_run_check(WT_SESSION_IMPL *session)
{
@@ -248,6 +268,10 @@ wait_run_check(WT_SESSION_IMPL *session)
return (true);
}
+/*
+ * thread_func_checkpoint --
+ * TODO: Add a comment describing this function.
+ */
static void *
thread_func_checkpoint(void *arg)
{
@@ -302,6 +326,10 @@ thread_func_checkpoint(void *arg)
return (NULL);
}
+/*
+ * populate --
+ * TODO: Add a comment describing this function.
+ */
static void
populate(WT_SESSION *session, const char *uri)
{
@@ -329,6 +357,10 @@ populate(WT_SESSION *session, const char *uri)
cursor = NULL;
}
+/*
+ * remove_records --
+ * TODO: Add a comment describing this function.
+ */
static void
remove_records(WT_SESSION *session, const char *uri)
{
@@ -347,6 +379,10 @@ remove_records(WT_SESSION *session, const char *uri)
cursor = NULL;
}
+/*
+ * get_file_stats --
+ * TODO: Add a comment describing this function.
+ */
static void
get_file_stats(WT_SESSION *session, const char *uri, uint64_t *file_sz, uint64_t *avail_bytes)
{
@@ -370,6 +406,10 @@ get_file_stats(WT_SESSION *session, const char *uri, uint64_t *file_sz, uint64_t
cur_stat = NULL;
}
+/*
+ * set_timing_stress_checkpoint --
+ * TODO: Add a comment describing this function.
+ */
static void
set_timing_stress_checkpoint(WT_CONNECTION *conn)
{
@@ -379,6 +419,10 @@ set_timing_stress_checkpoint(WT_CONNECTION *conn)
conn_impl->timing_stress_flags |= WT_TIMING_STRESS_CHECKPOINT_SLOW;
}
+/*
+ * get_compact_progress --
+ * TODO: Add a comment describing this function.
+ */
static void
get_compact_progress(WT_SESSION *session, const char *uri, uint64_t *pages_reviewed,
uint64_t *pages_skipped, uint64_t *pages_rewritten)
@@ -404,6 +448,10 @@ get_compact_progress(WT_SESSION *session, const char *uri, uint64_t *pages_revie
testutil_check(cur_stat->close(cur_stat));
}
+/*
+ * check_db_size --
+ * TODO: Add a comment describing this function.
+ */
static bool
check_db_size(WT_SESSION *session, const char *uri)
{
diff --git a/src/third_party/wiredtiger/test/csuite/wt8057_compact_stress/main.c b/src/third_party/wiredtiger/test/csuite/wt8057_compact_stress/main.c
index 89aa20f34c6..7c4319a4b57 100644
--- a/src/third_party/wiredtiger/test/csuite/wt8057_compact_stress/main.c
+++ b/src/third_party/wiredtiger/test/csuite/wt8057_compact_stress/main.c
@@ -96,6 +96,10 @@ static void get_compact_progress(
/*
* Signal handler to catch if the child died unexpectedly.
*/
+/*
+ * sig_handler --
+ * TODO: Add a comment describing this function.
+ */
static void
sig_handler(int sig)
{
@@ -110,6 +114,10 @@ sig_handler(int sig)
}
/* Methods implementation. */
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
@@ -128,6 +136,10 @@ main(int argc, char *argv[])
return (EXIT_SUCCESS);
}
+/*
+ * run_test --
+ * TODO: Add a comment describing this function.
+ */
static void
run_test(bool column_store, bool preserve)
{
@@ -200,6 +212,10 @@ run_test(bool column_store, bool preserve)
testutil_clean_work_dir(home);
}
+/*
+ * workload_compact --
+ * TODO: Add a comment describing this function.
+ */
static void
workload_compact(const char *home, const char *table_config)
{
@@ -276,6 +292,10 @@ workload_compact(const char *home, const char *table_config)
testutil_check(conn->close(conn, NULL));
}
+/*
+ * populate --
+ * TODO: Add a comment describing this function.
+ */
static void
populate(WT_SESSION *session, uint64_t start, uint64_t end)
{
@@ -310,6 +330,10 @@ populate(WT_SESSION *session, uint64_t start, uint64_t end)
testutil_check(cursor_2->close(cursor_2));
}
+/*
+ * remove_records --
+ * TODO: Add a comment describing this function.
+ */
static void
remove_records(WT_SESSION *session, const char *uri, uint64_t start, uint64_t end)
{
@@ -326,6 +350,10 @@ remove_records(WT_SESSION *session, const char *uri, uint64_t start, uint64_t en
testutil_check(cursor->close(cursor));
}
+/*
+ * verify_tables_helper --
+ * TODO: Add a comment describing this function.
+ */
static int
verify_tables_helper(WT_SESSION *session, const char *table1, const char *table2)
{
@@ -366,6 +394,10 @@ verify_tables_helper(WT_SESSION *session, const char *table1, const char *table2
return (total_keys);
}
+/*
+ * verify_tables --
+ * TODO: Add a comment describing this function.
+ */
static void
verify_tables(WT_SESSION *session)
{
@@ -383,6 +415,10 @@ verify_tables(WT_SESSION *session)
printf("%i Keys verified from the two tables. \n", total_keys_1);
}
+/*
+ * get_file_stats --
+ * TODO: Add a comment describing this function.
+ */
static void
get_file_stats(WT_SESSION *session, const char *uri, uint64_t *file_sz, uint64_t *avail_bytes)
{
@@ -406,6 +442,10 @@ get_file_stats(WT_SESSION *session, const char *uri, uint64_t *file_sz, uint64_t
cur_stat = NULL;
}
+/*
+ * log_db_size --
+ * TODO: Add a comment describing this function.
+ */
static void
log_db_size(WT_SESSION *session, const char *uri)
{
@@ -423,6 +463,10 @@ log_db_size(WT_SESSION *session, const char *uri)
file_sz / WT_MEGABYTE, file_sz, avail_bytes / WT_MEGABYTE, avail_bytes, available_pct);
}
+/*
+ * get_compact_progress --
+ * TODO: Add a comment describing this function.
+ */
static void
get_compact_progress(WT_SESSION *session, const char *uri, uint64_t *pages_reviewed,
uint64_t *pages_skipped, uint64_t *pages_rewritten)
diff --git a/src/third_party/wiredtiger/test/csuite/wt8246_compact_rts_data_correctness/main.c b/src/third_party/wiredtiger/test/csuite/wt8246_compact_rts_data_correctness/main.c
index c26c04e4f7f..812f3f7432b 100644
--- a/src/third_party/wiredtiger/test/csuite/wt8246_compact_rts_data_correctness/main.c
+++ b/src/third_party/wiredtiger/test/csuite/wt8246_compact_rts_data_correctness/main.c
@@ -69,6 +69,10 @@ static void check(WT_SESSION *session, const char *uri, char *value, int commit_
/*
* Signal handler to catch if the child died unexpectedly.
*/
+/*
+ * sig_handler --
+ * TODO: Add a comment describing this function.
+ */
static void
sig_handler(int sig)
{
@@ -83,6 +87,10 @@ sig_handler(int sig)
}
/* Methods implementation. */
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
@@ -101,6 +109,10 @@ main(int argc, char *argv[])
return (EXIT_SUCCESS);
}
+/*
+ * run_compact --
+ * TODO: Add a comment describing this function.
+ */
static void
run_compact(WT_SESSION *session, const char *uri)
{
@@ -110,6 +122,10 @@ run_compact(WT_SESSION *session, const char *uri)
printf("Compact end...\n");
}
+/*
+ * run_test --
+ * TODO: Add a comment describing this function.
+ */
static int
run_test(bool column_store, const char *uri, bool preserve)
{
@@ -210,6 +226,10 @@ run_test(bool column_store, const char *uri, bool preserve)
return (EXIT_SUCCESS);
}
+/*
+ * workload_compact --
+ * TODO: Add a comment describing this function.
+ */
static void
workload_compact(const char *home, const char *table_config, const char *uri)
{
@@ -272,6 +292,10 @@ workload_compact(const char *home, const char *table_config, const char *uri)
run_compact(session, uri);
}
+/*
+ * check --
+ * TODO: Add a comment describing this function.
+ */
static void
check(WT_SESSION *session, const char *uri, char *value, int read_ts)
{
@@ -306,6 +330,10 @@ check(WT_SESSION *session, const char *uri, char *value, int read_ts)
cursor = NULL;
}
+/*
+ * large_updates --
+ * TODO: Add a comment describing this function.
+ */
static void
large_updates(WT_SESSION *session, const char *uri, char *value, int commit_ts)
{
@@ -332,6 +360,10 @@ large_updates(WT_SESSION *session, const char *uri, char *value, int commit_ts)
cursor = NULL;
}
+/*
+ * populate --
+ * TODO: Add a comment describing this function.
+ */
static void
populate(WT_SESSION *session, const char *uri)
{
@@ -362,6 +394,10 @@ populate(WT_SESSION *session, const char *uri)
cursor = NULL;
}
+/*
+ * remove_records --
+ * TODO: Add a comment describing this function.
+ */
static void
remove_records(WT_SESSION *session, const char *uri, int commit_ts)
{
diff --git a/src/third_party/wiredtiger/test/cursor_order/cursor_order.c b/src/third_party/wiredtiger/test/cursor_order/cursor_order.c
index bac7e25c7bc..4cf99d20c5a 100644
--- a/src/third_party/wiredtiger/test/cursor_order/cursor_order.c
+++ b/src/third_party/wiredtiger/test/cursor_order/cursor_order.c
@@ -42,6 +42,10 @@ static void wt_shutdown(SHARED_CONFIG *);
extern int __wt_optind;
extern char *__wt_optarg;
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
@@ -208,6 +212,10 @@ shutdown(void)
testutil_clean_work_dir(home);
}
+/*
+ * handle_error --
+ * TODO: Add a comment describing this function.
+ */
static int
handle_error(WT_EVENT_HANDLER *handler, WT_SESSION *session, int error, const char *errmsg)
{
@@ -218,6 +226,10 @@ handle_error(WT_EVENT_HANDLER *handler, WT_SESSION *session, int error, const ch
return (fprintf(stderr, "%s\n", errmsg) < 0 ? -1 : 0);
}
+/*
+ * handle_message --
+ * TODO: Add a comment describing this function.
+ */
static int
handle_message(WT_EVENT_HANDLER *handler, WT_SESSION *session, const char *message)
{
diff --git a/src/third_party/wiredtiger/test/cursor_order/cursor_order_file.c b/src/third_party/wiredtiger/test/cursor_order/cursor_order_file.c
index e67b70d7d6b..74addeb001a 100644
--- a/src/third_party/wiredtiger/test/cursor_order/cursor_order_file.c
+++ b/src/third_party/wiredtiger/test/cursor_order/cursor_order_file.c
@@ -28,6 +28,10 @@
#include "cursor_order.h"
+/*
+ * file_create --
+ * TODO: Add a comment describing this function.
+ */
static void
file_create(SHARED_CONFIG *cfg, const char *name)
{
@@ -56,6 +60,10 @@ file_create(SHARED_CONFIG *cfg, const char *name)
testutil_check(session->close(session, NULL));
}
+/*
+ * load --
+ * TODO: Add a comment describing this function.
+ */
void
load(SHARED_CONFIG *cfg, const char *name)
{
@@ -102,6 +110,10 @@ load(SHARED_CONFIG *cfg, const char *name)
testutil_check(session->close(session, NULL));
}
+/*
+ * verify --
+ * TODO: Add a comment describing this function.
+ */
void
verify(SHARED_CONFIG *cfg, const char *name)
{
diff --git a/src/third_party/wiredtiger/test/cursor_order/cursor_order_ops.c b/src/third_party/wiredtiger/test/cursor_order/cursor_order_ops.c
index b02b3c1738a..1c64bf09c64 100644
--- a/src/third_party/wiredtiger/test/cursor_order/cursor_order_ops.c
+++ b/src/third_party/wiredtiger/test/cursor_order/cursor_order_ops.c
@@ -45,6 +45,10 @@ typedef struct {
static INFO *run_info;
+/*
+ * ops_start --
+ * TODO: Add a comment describing this function.
+ */
void
ops_start(SHARED_CONFIG *cfg)
{
diff --git a/src/third_party/wiredtiger/test/fops/file.c b/src/third_party/wiredtiger/test/fops/file.c
index 808d1da4c47..78bec1d589e 100644
--- a/src/third_party/wiredtiger/test/fops/file.c
+++ b/src/third_party/wiredtiger/test/fops/file.c
@@ -30,6 +30,10 @@
static u_int uid = 1;
+/*
+ * obj_bulk --
+ * TODO: Add a comment describing this function.
+ */
void
obj_bulk(void)
{
@@ -69,6 +73,10 @@ obj_bulk(void)
testutil_check(session->close(session, NULL));
}
+/*
+ * obj_bulk_unique --
+ * TODO: Add a comment describing this function.
+ */
void
obj_bulk_unique(int force)
{
@@ -107,6 +115,10 @@ obj_bulk_unique(int force)
testutil_check(session->close(session, NULL));
}
+/*
+ * obj_cursor --
+ * TODO: Add a comment describing this function.
+ */
void
obj_cursor(void)
{
@@ -129,6 +141,10 @@ obj_cursor(void)
testutil_check(session->close(session, NULL));
}
+/*
+ * obj_create --
+ * TODO: Add a comment describing this function.
+ */
void
obj_create(void)
{
@@ -148,6 +164,10 @@ obj_create(void)
testutil_check(session->close(session, NULL));
}
+/*
+ * obj_create_unique --
+ * TODO: Add a comment describing this function.
+ */
void
obj_create_unique(int force)
{
@@ -180,6 +200,10 @@ obj_create_unique(int force)
testutil_check(session->close(session, NULL));
}
+/*
+ * obj_drop --
+ * TODO: Add a comment describing this function.
+ */
void
obj_drop(int force)
{
@@ -210,6 +234,10 @@ obj_drop(int force)
testutil_check(session->close(session, NULL));
}
+/*
+ * obj_checkpoint --
+ * TODO: Add a comment describing this function.
+ */
void
obj_checkpoint(void)
{
@@ -230,6 +258,10 @@ obj_checkpoint(void)
testutil_check(session->close(session, NULL));
}
+/*
+ * obj_upgrade --
+ * TODO: Add a comment describing this function.
+ */
void
obj_upgrade(void)
{
@@ -245,6 +277,10 @@ obj_upgrade(void)
testutil_check(session->close(session, NULL));
}
+/*
+ * obj_verify --
+ * TODO: Add a comment describing this function.
+ */
void
obj_verify(void)
{
diff --git a/src/third_party/wiredtiger/test/fops/fops.c b/src/third_party/wiredtiger/test/fops/fops.c
index 01dcd0dac5a..7e908cc6a27 100644
--- a/src/third_party/wiredtiger/test/fops/fops.c
+++ b/src/third_party/wiredtiger/test/fops/fops.c
@@ -45,6 +45,10 @@ typedef struct {
static STATS *run_stats;
+/*
+ * fop_start --
+ * TODO: Add a comment describing this function.
+ */
void
fop_start(u_int nthreads)
{
diff --git a/src/third_party/wiredtiger/test/fops/t.c b/src/third_party/wiredtiger/test/fops/t.c
index 6580027483a..fa011b2c069 100644
--- a/src/third_party/wiredtiger/test/fops/t.c
+++ b/src/third_party/wiredtiger/test/fops/t.c
@@ -50,6 +50,10 @@ static void wt_shutdown(void);
extern int __wt_optind;
extern char *__wt_optarg;
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
@@ -176,6 +180,10 @@ shutdown(void)
testutil_clean_work_dir(home);
}
+/*
+ * handle_error --
+ * TODO: Add a comment describing this function.
+ */
static int
handle_error(WT_EVENT_HANDLER *handler, WT_SESSION *session, int error, const char *errmsg)
{
@@ -194,6 +202,10 @@ handle_error(WT_EVENT_HANDLER *handler, WT_SESSION *session, int error, const ch
return (fprintf(stderr, "%s\n", errmsg) < 0 ? -1 : 0);
}
+/*
+ * handle_message --
+ * TODO: Add a comment describing this function.
+ */
static int
handle_message(WT_EVENT_HANDLER *handler, WT_SESSION *session, const char *message)
{
diff --git a/src/third_party/wiredtiger/test/format/t.c b/src/third_party/wiredtiger/test/format/t.c
index aa7baad4c7c..34a5fe08847 100644
--- a/src/third_party/wiredtiger/test/format/t.c
+++ b/src/third_party/wiredtiger/test/format/t.c
@@ -147,6 +147,10 @@ format_process_env(void)
static bool syntax_check; /* Only checking configuration syntax. */
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/test/huge/huge.c b/src/third_party/wiredtiger/test/huge/huge.c
index 8526373c4e4..4d7930c08d9 100644
--- a/src/third_party/wiredtiger/test/huge/huge.c
+++ b/src/third_party/wiredtiger/test/huge/huge.c
@@ -59,6 +59,10 @@ static size_t lengths[] = {20, /* Check configuration */
0};
static void usage(void) WT_GCC_FUNC_DECL_ATTRIBUTE((noreturn));
+/*
+ * usage --
+ * TODO: Add a comment describing this function.
+ */
static void
usage(void)
{
@@ -73,6 +77,10 @@ usage(void)
#define SIZET_FMT "%Iu" /* size_t format string */
#endif
+/*
+ * run --
+ * TODO: Add a comment describing this function.
+ */
static void
run(CONFIG *cp, int bigkey, size_t bytes)
{
@@ -135,6 +143,10 @@ run(CONFIG *cp, int bigkey, size_t bytes)
extern int __wt_optind;
extern char *__wt_optarg;
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/test/manydbs/manydbs.c b/src/third_party/wiredtiger/test/manydbs/manydbs.c
index 1dec47c5f16..679455814dd 100644
--- a/src/third_party/wiredtiger/test/manydbs/manydbs.c
+++ b/src/third_party/wiredtiger/test/manydbs/manydbs.c
@@ -76,6 +76,10 @@ static const char *const uri = "table:main";
#endif
static void usage(void) WT_GCC_FUNC_DECL_ATTRIBUTE((noreturn));
+/*
+ * usage --
+ * TODO: Add a comment describing this function.
+ */
static void
usage(void)
{
@@ -91,6 +95,10 @@ static WT_CURSOR **cursors = NULL;
static WT_RAND_STATE rnd;
static WT_SESSION **sessions = NULL;
+/*
+ * get_stat --
+ * TODO: Add a comment describing this function.
+ */
static int
get_stat(WT_SESSION *stat_session, int stat_field, uint64_t *valuep)
{
@@ -108,6 +116,10 @@ get_stat(WT_SESSION *stat_session, int stat_field, uint64_t *valuep)
return (ret);
}
+/*
+ * run_ops --
+ * TODO: Add a comment describing this function.
+ */
static void
run_ops(int dbs)
{
@@ -136,6 +148,10 @@ run_ops(int dbs)
}
}
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/test/packing/intpack-test.c b/src/third_party/wiredtiger/test/packing/intpack-test.c
index b299fc1bc9c..48a4e3ead37 100644
--- a/src/third_party/wiredtiger/test/packing/intpack-test.c
+++ b/src/third_party/wiredtiger/test/packing/intpack-test.c
@@ -28,6 +28,10 @@
#include "test_util.h"
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(void)
{
diff --git a/src/third_party/wiredtiger/test/packing/intpack-test2.c b/src/third_party/wiredtiger/test/packing/intpack-test2.c
index 9007c553b57..6aa54008309 100644
--- a/src/third_party/wiredtiger/test/packing/intpack-test2.c
+++ b/src/third_party/wiredtiger/test/packing/intpack-test2.c
@@ -28,6 +28,10 @@
#include "test_util.h"
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(void)
{
diff --git a/src/third_party/wiredtiger/test/packing/intpack-test3.c b/src/third_party/wiredtiger/test/packing/intpack-test3.c
index 3207ac4ff19..4c168f8a83e 100644
--- a/src/third_party/wiredtiger/test/packing/intpack-test3.c
+++ b/src/third_party/wiredtiger/test/packing/intpack-test3.c
@@ -31,6 +31,10 @@
void test_value(int64_t);
void test_spread(int64_t, int64_t, int64_t);
+/*
+ * test_value --
+ * TODO: Add a comment describing this function.
+ */
void
test_value(int64_t val)
{
@@ -96,6 +100,10 @@ test_value(int64_t val)
}
}
+/*
+ * test_spread --
+ * TODO: Add a comment describing this function.
+ */
void
test_spread(int64_t start, int64_t before, int64_t after)
{
@@ -107,6 +115,10 @@ test_spread(int64_t start, int64_t before, int64_t after)
test_value(i);
}
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(void)
{
diff --git a/src/third_party/wiredtiger/test/packing/packing-test.c b/src/third_party/wiredtiger/test/packing/packing-test.c
index 362891ef701..5958edc203d 100644
--- a/src/third_party/wiredtiger/test/packing/packing-test.c
+++ b/src/third_party/wiredtiger/test/packing/packing-test.c
@@ -28,6 +28,10 @@
#include "test_util.h"
+/*
+ * check --
+ * TODO: Add a comment describing this function.
+ */
static void
check(const char *fmt, ...)
{
@@ -54,6 +58,10 @@ check(const char *fmt, ...)
printf("\n");
}
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(void)
{
diff --git a/src/third_party/wiredtiger/test/readonly/readonly.c b/src/third_party/wiredtiger/test/readonly/readonly.c
index 7850370bd15..26b972eab52 100644
--- a/src/third_party/wiredtiger/test/readonly/readonly.c
+++ b/src/third_party/wiredtiger/test/readonly/readonly.c
@@ -57,6 +57,10 @@ static const char *const uri = "table:main";
#define OP_WRITE 1
static void usage(void) WT_GCC_FUNC_DECL_ATTRIBUTE((noreturn));
+/*
+ * usage --
+ * TODO: Add a comment describing this function.
+ */
static void
usage(void)
{
@@ -64,6 +68,10 @@ usage(void)
exit(EXIT_FAILURE);
}
+/*
+ * run_child --
+ * TODO: Add a comment describing this function.
+ */
static int
run_child(const char *homedir, int op, int expect)
{
@@ -114,6 +122,10 @@ run_child(const char *homedir, int op, int expect)
*/
static void open_dbs(int, const char *, const char *, const char *, const char *)
WT_GCC_FUNC_DECL_ATTRIBUTE((noreturn));
+/*
+ * open_dbs --
+ * TODO: Add a comment describing this function.
+ */
static void
open_dbs(int op, const char *dir, const char *dir_wr, const char *dir_rd, const char *dir_rd2)
{
@@ -146,6 +158,10 @@ open_dbs(int op, const char *dir, const char *dir_wr, const char *dir_rd, const
extern int __wt_optind;
extern char *__wt_optarg;
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/test/salvage/salvage.c b/src/third_party/wiredtiger/test/salvage/salvage.c
index 9c79e0c219c..5f81e4cccd2 100644
--- a/src/third_party/wiredtiger/test/salvage/salvage.c
+++ b/src/third_party/wiredtiger/test/salvage/salvage.c
@@ -58,6 +58,10 @@ static int verbose; /* -v flag */
extern int __wt_optind;
extern char *__wt_optarg;
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
@@ -105,6 +109,10 @@ main(int argc, char *argv[])
return (EXIT_SUCCESS);
}
+/*
+ * t --
+ * TODO: Add a comment describing this function.
+ */
void
t(int r, u_int ptype, int unique)
{
@@ -143,6 +151,10 @@ t(int r, u_int ptype, int unique)
}
}
+/*
+ * usage --
+ * TODO: Add a comment describing this function.
+ */
int
usage(void)
{
@@ -150,6 +162,10 @@ usage(void)
return (EXIT_FAILURE);
}
+/*
+ * run --
+ * TODO: Add a comment describing this function.
+ */
void
run(int r)
{
diff --git a/src/third_party/wiredtiger/test/syscall/wt2336_base/main.c b/src/third_party/wiredtiger/test/syscall/wt2336_base/main.c
index 18fe26cd114..2ac3c8ee834 100644
--- a/src/third_party/wiredtiger/test/syscall/wt2336_base/main.c
+++ b/src/third_party/wiredtiger/test/syscall/wt2336_base/main.c
@@ -34,6 +34,10 @@
static void fail(int) WT_GCC_FUNC_DECL_ATTRIBUTE((noreturn));
+/*
+ * fail --
+ * TODO: Add a comment describing this function.
+ */
static void
fail(int ret)
{
@@ -43,6 +47,10 @@ fail(int ret)
#define SEPARATOR "--------------"
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
diff --git a/src/third_party/wiredtiger/test/thread/file.c b/src/third_party/wiredtiger/test/thread/file.c
index e74facfbece..5717e72c63e 100644
--- a/src/third_party/wiredtiger/test/thread/file.c
+++ b/src/third_party/wiredtiger/test/thread/file.c
@@ -28,6 +28,10 @@
#include "thread.h"
+/*
+ * file_create --
+ * TODO: Add a comment describing this function.
+ */
static void
file_create(const char *name)
{
@@ -48,6 +52,10 @@ file_create(const char *name)
testutil_check(session->close(session, NULL));
}
+/*
+ * load --
+ * TODO: Add a comment describing this function.
+ */
void
load(const char *name)
{
@@ -90,6 +98,10 @@ load(const char *name)
testutil_check(session->close(session, NULL));
}
+/*
+ * verify --
+ * TODO: Add a comment describing this function.
+ */
void
verify(const char *name)
{
diff --git a/src/third_party/wiredtiger/test/thread/rw.c b/src/third_party/wiredtiger/test/thread/rw.c
index c0282e50a78..c18465e160f 100644
--- a/src/third_party/wiredtiger/test/thread/rw.c
+++ b/src/third_party/wiredtiger/test/thread/rw.c
@@ -45,6 +45,10 @@ typedef struct {
static INFO *run_info;
+/*
+ * rw_start --
+ * TODO: Add a comment describing this function.
+ */
void
rw_start(u_int readers, u_int writers)
{
diff --git a/src/third_party/wiredtiger/test/thread/stats.c b/src/third_party/wiredtiger/test/thread/stats.c
index 36416fc6846..b1c8fc8473c 100644
--- a/src/third_party/wiredtiger/test/thread/stats.c
+++ b/src/third_party/wiredtiger/test/thread/stats.c
@@ -32,6 +32,10 @@
* stats
* Dump the database/file statistics.
*/
+/*
+ * stats --
+ * TODO: Add a comment describing this function.
+ */
void
stats(void)
{
diff --git a/src/third_party/wiredtiger/test/thread/t.c b/src/third_party/wiredtiger/test/thread/t.c
index c37f4bc37d2..9a0dd5fba20 100644
--- a/src/third_party/wiredtiger/test/thread/t.c
+++ b/src/third_party/wiredtiger/test/thread/t.c
@@ -50,6 +50,10 @@ static void wt_shutdown(void);
extern int __wt_optind;
extern char *__wt_optarg;
+/*
+ * main --
+ * TODO: Add a comment describing this function.
+ */
int
main(int argc, char *argv[])
{
@@ -211,6 +215,10 @@ shutdown(void)
testutil_clean_work_dir(home);
}
+/*
+ * handle_error --
+ * TODO: Add a comment describing this function.
+ */
static int
handle_error(WT_EVENT_HANDLER *handler, WT_SESSION *session, int error, const char *errmsg)
{
@@ -221,6 +229,10 @@ handle_error(WT_EVENT_HANDLER *handler, WT_SESSION *session, int error, const ch
return (fprintf(stderr, "%s\n", errmsg) < 0 ? -1 : 0);
}
+/*
+ * handle_message --
+ * TODO: Add a comment describing this function.
+ */
static int
handle_message(WT_EVENT_HANDLER *handler, WT_SESSION *session, const char *message)
{
diff --git a/src/third_party/wiredtiger/test/utility/misc.c b/src/third_party/wiredtiger/test/utility/misc.c
index 9c71eecae0e..9661ecb963e 100644
--- a/src/third_party/wiredtiger/test/utility/misc.c
+++ b/src/third_party/wiredtiger/test/utility/misc.c
@@ -293,6 +293,10 @@ testutil_timestamp_parse(const char *str, uint64_t *tsp)
testutil_assert(p - str <= 16);
}
+/*
+ * testutil_create_backup_directory --
+ * TODO: Add a comment describing this function.
+ */
void
testutil_create_backup_directory(const char *home)
{
@@ -310,6 +314,10 @@ testutil_create_backup_directory(const char *home)
* copy_file --
* Copy a single file into the backup directories.
*/
+/*
+ * testutil_copy_file --
+ * TODO: Add a comment describing this function.
+ */
void
testutil_copy_file(WT_SESSION *session, const char *name)
{
diff --git a/src/third_party/wiredtiger/test/utility/thread.c b/src/third_party/wiredtiger/test/utility/thread.c
index 45d1bc5f420..c785ba75bce 100644
--- a/src/third_party/wiredtiger/test/utility/thread.c
+++ b/src/third_party/wiredtiger/test/utility/thread.c
@@ -33,6 +33,10 @@
* variable length column stores. One thread (the first thread created by an application) checks for
* a terminating condition after each insert.
*/
+/*
+ * thread_append --
+ * TODO: Add a comment describing this function.
+ */
WT_THREAD_RET
thread_append(void *arg)
{
@@ -81,6 +85,10 @@ thread_append(void *arg)
/*
* Handle errors that generated by series of functions below that we can safely ignore.
*/
+/*
+ * handle_op_error --
+ * TODO: Add a comment describing this function.
+ */
int
handle_op_error(WT_EVENT_HANDLER *handler, WT_SESSION *session, int error, const char *errmsg)
{
@@ -104,6 +112,10 @@ handle_op_error(WT_EVENT_HANDLER *handler, WT_SESSION *session, int error, const
/*
* Handle messages generated by the functions below that we can safely ignore.
*/
+/*
+ * handle_op_message --
+ * TODO: Add a comment describing this function.
+ */
int
handle_op_message(WT_EVENT_HANDLER *handler, WT_SESSION *session, const char *message)
{
@@ -120,6 +132,10 @@ handle_op_message(WT_EVENT_HANDLER *handler, WT_SESSION *session, const char *me
/*
* Create a table and open a bulk cursor on it.
*/
+/*
+ * op_bulk --
+ * TODO: Add a comment describing this function.
+ */
void
op_bulk(void *arg)
{
@@ -154,6 +170,10 @@ op_bulk(void *arg)
/*
* Create a guaranteed unique table and open and close a bulk cursor on it.
*/
+/*
+ * op_bulk_unique --
+ * TODO: Add a comment describing this function.
+ */
void
op_bulk_unique(void *arg)
{
@@ -207,6 +227,10 @@ op_bulk_unique(void *arg)
/*
* Open and close cursor on a table.
*/
+/*
+ * op_cursor --
+ * TODO: Add a comment describing this function.
+ */
void
op_cursor(void *arg)
{
@@ -243,6 +267,10 @@ op_cursor(void *arg)
/*
* Create a table.
*/
+/*
+ * op_create --
+ * TODO: Add a comment describing this function.
+ */
void
op_create(void *arg)
{
@@ -267,6 +295,10 @@ op_create(void *arg)
/*
* Create and drop a unique guaranteed table.
*/
+/*
+ * op_create_unique --
+ * TODO: Add a comment describing this function.
+ */
void
op_create_unique(void *arg)
{
@@ -308,6 +340,10 @@ op_create_unique(void *arg)
/*
* Drop a table.
*/
+/*
+ * op_drop --
+ * TODO: Add a comment describing this function.
+ */
void
op_drop(void *arg)
{
diff --git a/src/third_party/wiredtiger/test/windows/windows_shim.c b/src/third_party/wiredtiger/test/windows/windows_shim.c
index fe17152894c..9899e157fe3 100644
--- a/src/third_party/wiredtiger/test/windows/windows_shim.c
+++ b/src/third_party/wiredtiger/test/windows/windows_shim.c
@@ -28,6 +28,10 @@
#include "windows_shim.h"
+/*
+ * sleep --
+ * TODO: Add a comment describing this function.
+ */
int
sleep(int seconds)
{
@@ -35,6 +39,10 @@ sleep(int seconds)
return (0);
}
+/*
+ * usleep --
+ * TODO: Add a comment describing this function.
+ */
int
usleep(useconds_t useconds)
{
@@ -49,6 +57,10 @@ usleep(useconds_t useconds)
return (0);
}
+/*
+ * gettimeofday --
+ * TODO: Add a comment describing this function.
+ */
int
gettimeofday(struct timeval *tp, void *tzp)
{
@@ -66,6 +78,10 @@ gettimeofday(struct timeval *tp, void *tzp)
return (0);
}
+/*
+ * pthread_rwlock_destroy --
+ * TODO: Add a comment describing this function.
+ */
int
pthread_rwlock_destroy(pthread_rwlock_t *lock)
{
@@ -73,6 +89,10 @@ pthread_rwlock_destroy(pthread_rwlock_t *lock)
return (0);
}
+/*
+ * pthread_rwlock_init --
+ * TODO: Add a comment describing this function.
+ */
int
pthread_rwlock_init(pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *ignored)
{
@@ -83,6 +103,10 @@ pthread_rwlock_init(pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *ignore
return (0);
}
+/*
+ * pthread_rwlock_unlock --
+ * TODO: Add a comment describing this function.
+ */
int
pthread_rwlock_unlock(pthread_rwlock_t *rwlock)
{
@@ -95,12 +119,20 @@ pthread_rwlock_unlock(pthread_rwlock_t *rwlock)
return (0);
}
+/*
+ * pthread_rwlock_tryrdlock --
+ * TODO: Add a comment describing this function.
+ */
int
pthread_rwlock_tryrdlock(pthread_rwlock_t *rwlock)
{
return (TryAcquireSRWLockShared(&rwlock->rwlock) ? 0 : EBUSY);
}
+/*
+ * pthread_rwlock_rdlock --
+ * TODO: Add a comment describing this function.
+ */
int
pthread_rwlock_rdlock(pthread_rwlock_t *rwlock)
{
@@ -108,6 +140,10 @@ pthread_rwlock_rdlock(pthread_rwlock_t *rwlock)
return (0);
}
+/*
+ * pthread_rwlock_trywrlock --
+ * TODO: Add a comment describing this function.
+ */
int
pthread_rwlock_trywrlock(pthread_rwlock_t *rwlock)
{
@@ -119,6 +155,10 @@ pthread_rwlock_trywrlock(pthread_rwlock_t *rwlock)
return (EBUSY);
}
+/*
+ * pthread_rwlock_wrlock --
+ * TODO: Add a comment describing this function.
+ */
int
pthread_rwlock_wrlock(pthread_rwlock_t *rwlock)
{