Changeset: eb92c1b3f411 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=eb92c1b3f411
Modified Files:
        monetdb5/modules/kernel/bat5.c
Branch: Feb2013
Log Message:

getdisksize: fix when bid < 0


diffs (14 lines):

diff --git a/monetdb5/modules/kernel/bat5.c b/monetdb5/modules/kernel/bat5.c
--- a/monetdb5/modules/kernel/bat5.c
+++ b/monetdb5/modules/kernel/bat5.c
@@ -1633,9 +1633,8 @@ BKCinfo(int *ret1, int *ret2, int *bid)
 str
 BKCbatdisksize(lng *tot, int *bid){
        BAT *b;
-       if ((b = BATdescriptor(*bid)) == NULL) {
+       if ((b = BATdescriptor(ABS(*bid))) == NULL)
                throw(MAL, "bat.getDiskSize", RUNTIME_OBJECT_MISSING);
-       }
        CMDbatdisksize(tot,b);
        BBPreleaseref(*bid);
        return MAL_SUCCEED;
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to