EnvFlush() 개인적인 메소드

private EnvFlush ( IntPtr handle, int flags ) : int
handle System.IntPtr
flags int
리턴 int
예제 #1
0
        /// <summary>
        /// Flushes the Environment
        /// </summary>
        /// <remarks>
        /// This method wraps the native ups_env_flush function.
        /// <br />
        /// This function flushes the Database cache and writes the whole
        /// file to disk.
        /// <br />
        /// Since In-Memory Environments do not have a file on disk, the
        /// function will have no effect and will return successfully.
        /// </remarks>
        public void Flush()
        {
            int st;

            lock (this) {
                st = NativeMethods.EnvFlush(handle, 0);
            }
            if (st != 0)
            {
                throw new DatabaseException(st);
            }
        }