Changeset: 5800ff486d7b for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=5800ff486d7b
Modified Files:
        common/utils/msabaoth.c
Branch: Jul2015
Log Message:

Return *all* matching databases, not just the first.


diffs (28 lines):

diff --git a/common/utils/msabaoth.c b/common/utils/msabaoth.c
--- a/common/utils/msabaoth.c
+++ b/common/utils/msabaoth.c
@@ -678,8 +678,8 @@ msab_getStatus(sabdb** ret, char *dbname
         * sufficient to see if reparsing is necessary.  The gdk_lock always has
         * to be checked to detect crashes. */
 
-       sabdb *sdb, *top;
-       sdb = top = *ret = NULL;
+       sabdb *sdb;
+       sdb = *ret = NULL;
 
        /* scan the parent for directories */
        if ((p = getFarmPath(pathbuf, sizeof(pathbuf), NULL)) != NULL)
@@ -700,12 +700,10 @@ msab_getStatus(sabdb** ret, char *dbname
                        continue;
 
                sdb = msab_getSingleStatus(pathbuf, e->d_name, sdb);
-               if (top == NULL)
-                       top = sdb;
        }
        (void)closedir(d);
 
-       *ret = top;
+       *ret = sdb;
        return(NULL);
 }
 
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to