private EnvFlush ( |
||
handle | ||
flags | int | |
Результат | int |
/// <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); } }