Fixed major bug when cloning an AVL where the bloom filter was not

copied properly (because the sutructure copy via assignation does not
work for structures with a variable size)
This commit is contained in:
Celine Mercier
2016-09-15 11:47:02 +02:00
parent 9a97f1f633
commit de189fd7e0
2 changed files with 73 additions and 25 deletions

View File

@ -143,12 +143,6 @@ typedef struct OBIDMS_avl {
OBIDMS_avl_data_p data; /**< A pointer to the structure containing the data
* that the AVL tree references.
*/
DIR* directory; /**< A directory entry usable to
* refer and scan the AVL tree directory.
*/
int dir_fd; /**< The file descriptor of the directory entry
* usable to refer and scan the AVL tree directory.
*/
int avl_fd; /**< The file descriptor of the file containing the AVL tree.
*/
} OBIDMS_avl_t, *OBIDMS_avl_p;
@ -168,6 +162,8 @@ typedef struct OBIDMS_avl_group {
*/
bool writable; /**< Indicates whether the AVL group is read-only or not.
*/
DIR* directory; /**< A directory entry usable to refer and scan the AVL group directory.
*/
size_t counter; /**< Indicates by how many threads/programs (TODO) the AVL group is used.
*/
} OBIDMS_avl_group_t, *OBIDMS_avl_group_p;