
    ret = cursorp-&gt;put(&amp;key2, &amp;data2, 
            DB_KEYFIRST); /* Added according to sort order */

    // If duplicates are not allowed, the currently existing record that 
    // uses "key2" is overwritten with the data provided on this put.
    // That is, the record "A second string"/"My second data" becomes
    // "A second string"/"My third data"
    // 
    // If duplicates are allowed, then "My third data" is placed in the
    // duplicates list according to how it sorts against "My se