Changeset: 41dee68e1eb2 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=41dee68e1eb2
Modified Files:
        sql/backends/monet5/sql.c
        sql/backends/monet5/sql.h
        sql/backends/monet5/sql.mal
Branch: candidate-exceptions
Log Message:

added missing mal and mal wrappers for the new enable/disable log flusher calls


diffs (55 lines):

diff --git a/sql/backends/monet5/sql.c b/sql/backends/monet5/sql.c
--- a/sql/backends/monet5/sql.c
+++ b/sql/backends/monet5/sql.c
@@ -5717,6 +5717,21 @@ SQLflush_log(void *ret)
        return MAL_SUCCEED;
 }
 
+str 
+SQLresume_log_flushing(void *ret)
+{
+       (void)ret;
+       store_resume_log();
+       return MAL_SUCCEED;
+}
+
+str 
+SQLsuspend_log_flushing(void *ret)
+{
+       (void)ret;
+       store_suspend_log();
+       return MAL_SUCCEED;
+}
 str
 SQLexist_val(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci)
 {
diff --git a/sql/backends/monet5/sql.h b/sql/backends/monet5/sql.h
--- a/sql/backends/monet5/sql.h
+++ b/sql/backends/monet5/sql.h
@@ -319,6 +319,8 @@ sql5_export str STRstrings(str *res, con
 sql5_export str BATSTRstrings(bat *res, const bat *src);
 
 sql5_export str SQLflush_log(void *ret);
+sql5_export str SQLsuspend_log_flushing(void *ret);
+sql5_export str SQLresume_log_flushing(void *ret);
 
 sql5_export str SQLexist(bit *res, bat *id);
 sql5_export str SQLexist_val(Client cntxt, MalBlkPtr mb, MalStkPtr stk, 
InstrPtr pci);
diff --git a/sql/backends/monet5/sql.mal b/sql/backends/monet5/sql.mal
--- a/sql/backends/monet5/sql.mal
+++ b/sql/backends/monet5/sql.mal
@@ -62,6 +62,14 @@ command flush_log( ) :void
 address SQLflush_log
 comment "flush the log now";
 
+command resume_log_flushing( ) :void
+address SQLresume_log_flushing
+comment "Resume WAL log flushing";
+
+command suspend_log_flushing( ) :void
+address SQLsuspend_log_flushing
+comment "Suspend WAL log flushing";
+
 pattern assert(b:bit,msg:str):void
 address SQLassert
 comment "Generate an exception when b==true";
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to