fix FDBPut offset
authorteodor <teodor>
Mon, 4 Oct 2004 18:04:33 +0000 (18:04 +0000)
committerteodor <teodor>
Mon, 4 Oct 2004 18:04:33 +0000 (18:04 +0000)
flatdb.c

index a570417..d633744 100644 (file)
--- a/flatdb.c
+++ b/flatdb.c
@@ -274,6 +274,7 @@ FDBPut(FDB *db, FDBRecord *record, off_t *offset ) {
        ptr = findFreeSpace( db, record->length ); 
        if ( ptr ) {
                *offset = ptr->offset;
+               ptr->offset += record->length;
                ptr->length -= record->length;
                if ( ptr->length == 0 ) 
                        FDBVacuumFreeSpace(db);