Exemple #1
0
        internal int log_flush(DB_LSN lsn)
        {
            int ret;

            ret = libdb_csharpPINVOKE.DB_ENV_log_flush(swigCPtr, DB_LSN.getCPtr(lsn));
            DatabaseException.ThrowException(ret);
            return(ret);
        }
        internal int memp_sync(DB_LSN lsn)
        {
            int ret;

            ret = libdb_csharpPINVOKE.DB_ENV_memp_sync(swigCPtr, DB_LSN.getCPtr(lsn));
            DatabaseException.ThrowException(ret);
            return(ret);
        }
Exemple #3
0
 internal int log_put(DB_LSN lsn, DatabaseEntry data, uint flags)
 {
     try {
         int ret;
         ret = libdb_csharpPINVOKE.DB_ENV_log_put(swigCPtr, DB_LSN.getCPtr(lsn), DBT.getCPtr(DatabaseEntry.getDBT(data)), flags);
         DatabaseException.ThrowException(ret);
         return(ret);
     } finally {
         GC.KeepAlive(data);
     }
 }
Exemple #4
0
 internal static int log_compare(DB_LSN lsn0, DB_LSN lsn1)
 {
     return(libdb_csharpPINVOKE.log_compare(DB_LSN.getCPtr(lsn0), DB_LSN.getCPtr(lsn1)));
 }
Exemple #5
0
 internal int rep_process_message(DatabaseEntry control, DatabaseEntry rec, int envid, DB_LSN ret_lsnp)
 {
     try {
         int ret;
         ret = libdb_csharpPINVOKE.DB_ENV_rep_process_message(swigCPtr, DBT.getCPtr(DatabaseEntry.getDBT(control)), DBT.getCPtr(DatabaseEntry.getDBT(rec)), envid, DB_LSN.getCPtr(ret_lsnp));
         DatabaseException.ThrowException(ret);
         return(ret);
     } finally {
         GC.KeepAlive(control);
         GC.KeepAlive(rec);
     }
 }
Exemple #6
0
 private int log_file(DB_LSN lsn, IntPtr namep, uint len)
 {
     return(libdb_csharpPINVOKE.DB_ENV_log_file(swigCPtr, DB_LSN.getCPtr(lsn), namep, len));
 }