equal
deleted
inserted
replaced
294 @return A pointer to the new permanent file store object. |
294 @return A pointer to the new permanent file store object. |
295 @see TFileMode */ |
295 @see TFileMode */ |
296 { |
296 { |
297 // When the file server write caching is enabled, the order of file write operations is not guaranteed. This could cause data inconsistency in some circumstances, |
297 // When the file server write caching is enabled, the order of file write operations is not guaranteed. This could cause data inconsistency in some circumstances, |
298 // for example, when the power is lost in the middle of a database transaction. Therefore, the file write caching is disabled for this file to maintain integrity. |
298 // for example, when the power is lost in the middle of a database transaction. Therefore, the file write caching is disabled for this file to maintain integrity. |
299 |
|
300 if ((aFileMode&EFileWrite) != 0) |
299 if ((aFileMode&EFileWrite) != 0) |
301 { |
300 { |
302 aFileMode |= EFileWriteDirectIO; |
301 aFileMode |= EFileWriteDirectIO; |
303 aFileMode &= (~EFileWriteBuffered); |
302 aFileMode &= (~EFileWriteBuffered); |
304 } |
303 } |