F105 - Failure Feedback Forum
e.g. with the following code:
c4_Storage database("test.db", true);
c4_View sections = database.GetAs("blocks[data:b]");
for ( int i = 0; i < n; i++ ) {
c4_Row row; c4_BytesProp
data("data");
// pBuffer, nBytes have been updated on every iteration -
// e.g. we have a files list, reading data from files and
// storing it into metakit database
data(current) = c4_Bytes (pBuffer, nBytes);
sections.Add(row);
database.Commit(true);
}
e.g. if we have files A, B, C in list, in the metakit database we'll have data from file 'A' on the first Commit(), 'A' + 'A' + 'B' on the second one, 'A' + 'A' + 'B' + 'A' + 'A' + 'B' + 'C' on the third and so on. In spite of this, kviewer and metakit functions will show that we have only 'A', 'B', 'C'.
The above code is not usable for a test case as is. Will reopen when it is fixed.
Imported
Copied from metakit cvstrac ticket #14
Several comments:
Please turn this into a test case I can run here, if you want to get more assistance with this.