in the wake of http://jira.incubaid.com/browse/ARAKOON-373
cnt++;
}
printf(" (%08d)\n", cnt);
+ if (!tcbdbsync(bdb)) {
+ printerr(bdb);
+ err = true;
+ }
if (!tcbdbclose(bdb)) {
if (!err) printerr(bdb);
err = true;
The return value is whether splicing succeeded or not. */
static bool tchdbfbpsplice(TCHDB *hdb, TCHREC *rec, uint32_t nsiz) {
assert(hdb && rec && nsiz > 0);
+ if (nsiz > (0x80000000 - hdb->align)) {
+ return false;
+ }
if (hdb->mmtx) {
if (hdb->fbpnum < 1) {
return false;