Changeset: 9ceb57af931a for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=9ceb57af931a
Modified Files:
        monetdb5/modules/mal/oltp.c
Branch: oltp
Log Message:

Another one where indices were not correct


diffs (18 lines):

diff --git a/monetdb5/modules/mal/oltp.c b/monetdb5/modules/mal/oltp.c
--- a/monetdb5/modules/mal/oltp.c
+++ b/monetdb5/modules/mal/oltp.c
@@ -173,10 +173,10 @@ OLTPrelease(Client cntxt, MalBlkPtr mb, 
        for( i=1; i< pci->argc; i++){
                lck= getVarConstant(mb, getArg(pci,i)).val.ival;
                if( lck > 0){
-                               oltp_locks[i].cntxt = 0;
-                               oltp_locks[i].start = 0;
-                               oltp_locks[i].query = 0;
-                               oltp_locks[i].locked = 0;
+                               oltp_locks[lck].cntxt = 0;
+                               oltp_locks[lck].start = 0;
+                               oltp_locks[lck].query = 0;
+                               oltp_locks[lck].locked = 0;
                        }
        }
        //OLTPdump_(cntxt, "#released the locks\n");
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to