Subject: Re: Is DmSyncDatabase() synchronous?
From: Logan Shaw <[EMAIL PROTECTED]>
Date: Thu, 12 May 2005 21:45:07 -0500
X-Message-Number: 49

Ben Combee wrote:
> DmSyncDatabase will completely write the changes before it returns.  At
> least, it will make all the calls to VFS to do the file modifications.
> However, DmSyncDatabase may fail -- if there isn't enough space on the
> volume that holds the databases to write the changes, the changes will
> be thrown away and you'll get an error code.

I don't like to be a complainer (and I don't mean to shoot the messenger),
but do the people who are responsible for NVFS realize how seriously
terrible this behavior is?  For all practical purposes, once you've called
DmSyncDatabase(), it's far, far too late for the system to be giving
an error due to something like lack of space.  By that time, you may
have put potentially hundreds of records worth of stuff in all kinds
of places, and it's hard to know exactly what you should do when
DmSyncDatabase() fails, other than just give up and totally forget
keeping data integrity.

When NVFS is present call DmSyncDatabase() each time immediately after DmReleaseRecord() and handle the error at that point.


Roger Stringer
Marietta Systems, Inc. (www.rf-tp.com)


-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to