apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yla...@apache.org
Subject svn commit: r1611117 - /apr/apr/trunk/tables/apr_skiplist.c
Date Wed, 16 Jul 2014 17:59:51 GMT
Author: ylavic
Date: Wed Jul 16 17:59:50 2014
New Revision: 1611117

URL: http://svn.apache.org/r1611117
Log:
Use apr_skiplist_add() instead of apr_skiplist_insert() to merge skiplists
since doublons need to be merged too.

Modified:
    apr/apr/trunk/tables/apr_skiplist.c

Modified: apr/apr/trunk/tables/apr_skiplist.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/tables/apr_skiplist.c?rev=1611117&r1=1611116&r2=1611117&view=diff
==============================================================================
--- apr/apr/trunk/tables/apr_skiplist.c (original)
+++ apr/apr/trunk/tables/apr_skiplist.c Wed Jul 16 17:59:50 2014
@@ -648,10 +648,10 @@ APR_DECLARE(apr_skiplist *) apr_skiplist
         apr_skiplist_remove_all(sl2, NULL);
         return sl1;
     }
-    /* This is what makes it brute force... Just insert :/ */
+    /* This is what makes it brute force... Just add :/ */
     b2 = apr_skiplist_getlist(sl2);
     while (b2) {
-        apr_skiplist_insert(sl1, b2->data);
+        apr_skiplist_add(sl1, b2->data);
         apr_skiplist_next(sl2, &b2);
     }
     apr_skiplist_remove_all(sl2, NULL);



Mime
View raw message