can a Commit interruption damage files?

sylvain <[email protected]> Tue, 24 Apr 2007 07:54:45 -0700
Newsgroups gmane.comp.db.metakit
Message-ID <[email protected]>
Hi, when the following test is interrupted while committing, the next
execution shows that data is lost while datafile has grown/kept its
size. I am currently using 2.4.9.6 on gentoo linux. As I am quite new
to metakit, I am wondering if I've done something wrong... Any comment
would be really appreciated.

Best regards.
Sylvain.

void test()
{
	c4_Storage db("TEST", true);
	c4_View vw = db.GetAs("tab[val:I]");
	std::cout << vw.GetSize() << " " << boost::filesystem::file_size("./
TEST") << std::endl;

	c4_Row r;
	c4_IntProp VAL("val");
	for (int i=0; i<1000000; i++) { VAL(r) = i; vw.Add(r); }

	std::cout << "About to commit" << std::endl;
	db.Commit();
	std::cout << "Commit done" << std::endl;
}


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "metakit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/metakit?hl=en
-~----------~----~----~----~------~----~------~--~---