diff options
author | Alison Felizzi <alison.felizzi@mongodb.com> | 2021-09-02 06:33:27 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-09-02 06:58:55 +0000 |
commit | 21dd47f34a6db5031b8e7507c6d0566a9ebca42b (patch) | |
tree | a2fc0e3bad8e276222a693bb689a6d81cb6eb4db /src/third_party/wiredtiger/examples | |
parent | a78d1cd8c78e7ecb431865f38d8164104df0f2ac (diff) | |
download | mongo-21dd47f34a6db5031b8e7507c6d0566a9ebca42b.tar.gz |
Import wiredtiger: 387b83a0394c004244383bea306bb4f3e641d249 from branch mongodb-master
ref: 38ddd74fc3..387b83a039
for: 5.1.0
WT-6913 file system and os interface architecture guide
Diffstat (limited to 'src/third_party/wiredtiger/examples')
-rw-r--r-- | src/third_party/wiredtiger/examples/c/ex_file_system.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/third_party/wiredtiger/examples/c/ex_file_system.c b/src/third_party/wiredtiger/examples/c/ex_file_system.c index ad43cfe1cc0..9df1f6d73ca 100644 --- a/src/third_party/wiredtiger/examples/c/ex_file_system.c +++ b/src/third_party/wiredtiger/examples/c/ex_file_system.c @@ -228,7 +228,7 @@ demo_file_system_create(WT_CONNECTION *conn, WT_CONFIG_ARG *config) } allocate_file_system_lock(&demo_fs->lock); - + /*! [WT_FILE_SYSTEM create] */ /* Initialize the in-memory jump table. */ file_system->fs_directory_list = demo_fs_directory_list; file_system->fs_directory_list_free = demo_fs_directory_list_free; @@ -244,6 +244,7 @@ demo_file_system_create(WT_CONNECTION *conn, WT_CONFIG_ARG *config) wtext, NULL, "WT_CONNECTION.set_file_system: %s", wtext->strerror(wtext, NULL, ret)); goto err; } + /*! [WT_FILE_SYSTEM create] */ return (0); err: @@ -320,7 +321,7 @@ demo_fs_open(WT_FILE_SYSTEM *file_system, WT_SESSION *session, const char *name, ret = ENOMEM; goto err; } - + /*! [WT_FILE_HANDLE create] */ /* * Setup the function call table for our custom file system. Set the function pointer to NULL * where our implementation doesn't support the functionality. @@ -345,6 +346,7 @@ demo_fs_open(WT_FILE_SYSTEM *file_system, WT_SESSION *session, const char *name, ++demo_fs->opened_unique_file_count; *file_handlep = file_handle; + /*! [WT_FILE_HANDLE create] */ if (0) { err: |