diff options
| author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2015-02-17 17:25:57 +0000 |
|---|---|---|
| committer | <> | 2015-03-17 16:26:24 +0000 |
| commit | 780b92ada9afcf1d58085a83a0b9e6bc982203d1 (patch) | |
| tree | 598f8b9fa431b228d29897e798de4ac0c1d3d970 /docs/api_reference/C/dbset_dup_compare.html | |
| parent | 7a2660ba9cc2dc03a69ddfcfd95369395cc87444 (diff) | |
| download | berkeleydb-master.tar.gz | |
Diffstat (limited to 'docs/api_reference/C/dbset_dup_compare.html')
| -rw-r--r-- | docs/api_reference/C/dbset_dup_compare.html | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/docs/api_reference/C/dbset_dup_compare.html b/docs/api_reference/C/dbset_dup_compare.html index 7a76cb0e..67381e95 100644 --- a/docs/api_reference/C/dbset_dup_compare.html +++ b/docs/api_reference/C/dbset_dup_compare.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -41,8 +41,8 @@ <pre class="programlisting">#include <db.h> int -DB->set_dup_compare(DB *db, - int (*dup_compare_fcn)(DB *db, const DBT *dbt1, const DBT *dbt2)); </pre> +DB->set_dup_compare(DB *db, int (*dup_compare_fcn)(DB *db, + const DBT *dbt1, const DBT *dbt2, size_t *locp)); </pre> <p> Set the duplicate data item comparison function. The comparison function is called whenever it is necessary to compare a data item @@ -75,7 +75,7 @@ DB->set_dup_compare(DB *db, <div class="titlepage"> <div> <div> - <h3 class="title"><a id="idp58173736"></a>Parameters</h3> + <h3 class="title"><a id="idm3792344"></a>Parameters</h3> </div> </div> </div> @@ -83,14 +83,14 @@ DB->set_dup_compare(DB *db, <div class="titlepage"> <div> <div> - <h4 class="title"><a id="idp58178856"></a>dup_compare_fcn</h4> + <h4 class="title"><a id="idm2424440"></a>dup_compare_fcn</h4> </div> </div> </div> <p> The <span class="bold"><strong>dup_compare_fcn</strong></span> function is the application-specified duplicate data item comparison function. The - function takes three arguments: + function takes four arguments: </p> <div class="itemizedlist"> <ul type="disc"> @@ -123,6 +123,15 @@ DB->set_dup_compare(DB *db, tree's data item. </p> </li> + <li> + <p> + <code class="literal">locp</code> + </p> + <p> + The <span class="bold"><strong>locp</strong></span> parameter is currently + unused, and must be set to NULL or corruption can occur. + </p> + </li> </ul> </div> <p> @@ -145,7 +154,7 @@ DB->set_dup_compare(DB *db, <div class="titlepage"> <div> <div> - <h3 class="title"><a id="idp58157608"></a>Errors</h3> + <h3 class="title"><a id="idm4916208"></a>Errors</h3> </div> </div> </div> @@ -161,7 +170,7 @@ DB->set_dup_compare(DB *db, <div class="titlepage"> <div> <div> - <h4 class="title"><a id="idp58173112"></a>EINVAL</h4> + <h4 class="title"><a id="idm1449000"></a>EINVAL</h4> </div> </div> </div> @@ -174,7 +183,7 @@ DB->set_dup_compare(DB *db, <div class="titlepage"> <div> <div> - <h3 class="title"><a id="idp58201264"></a>Class</h3> + <h3 class="title"><a id="idm4488704"></a>Class</h3> </div> </div> </div> @@ -186,7 +195,7 @@ DB->set_dup_compare(DB *db, <div class="titlepage"> <div> <div> - <h3 class="title"><a id="idp58203208"></a>See Also</h3> + <h3 class="title"><a id="idm4148952"></a>See Also</h3> </div> </div> </div> |
