sylvain | 24 Apr 16:53

can a Commit interruption damage files?


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 metakit <at> googlegroups.com
To unsubscribe from this group, send email to metakit-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/metakit?hl=en
-~----------~----~----~----~------~----~------~--~---


Gmane