diff options
author | Not Zed <NotZed@Ximian.com> | 2002-04-03 04:03:42 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2002-04-03 04:03:42 +0800 |
commit | 0b20695032bc1b074f7f8287df527a01fb3bf6a2 (patch) | |
tree | aa5cb263180ba46de1e116c8a656691d87d480d3 /camel/camel-partition-table.h | |
parent | 8842c7c34759922cac90751c5eb8532bd6b94ec0 (diff) | |
download | gsoc2013-evolution-0b20695032bc1b074f7f8287df527a01fb3bf6a2.tar gsoc2013-evolution-0b20695032bc1b074f7f8287df527a01fb3bf6a2.tar.gz gsoc2013-evolution-0b20695032bc1b074f7f8287df527a01fb3bf6a2.tar.bz2 gsoc2013-evolution-0b20695032bc1b074f7f8287df527a01fb3bf6a2.tar.lz gsoc2013-evolution-0b20695032bc1b074f7f8287df527a01fb3bf6a2.tar.xz gsoc2013-evolution-0b20695032bc1b074f7f8287df527a01fb3bf6a2.tar.zst gsoc2013-evolution-0b20695032bc1b074f7f8287df527a01fb3bf6a2.zip |
Sync the key tables explcitly.
2002-04-03 Not Zed <NotZed@Ximian.com>
* camel-text-index.c (text_index_sync): Sync the key tables
explcitly.
* camel-partition-table.c (camel_key_table_finalise): Sync root
block when done.
(camel_key_table_sync): New function, sync key table (root) explicitly.
2002-04-02 Not Zed <NotZed@Ximian.com>
* camel-block-file.c (camel_block_file_free_block): Mark root
block dirty when we change it (this function isn't used yet
anyway).
* camel-text-index.c (text_index_add_name_to_word): Touch the root
block when we modify the counts. Also, abort processing on any
errors.
(text_index_sync): Fix typo in comments. Sync the block file
inside the lock.
(text_index_compress_nosync): Lock the old index while we're
compressing.
(text_index_compress_nosync): Remove the bogus while() at the end
of the while() loops! Also plug a memleak - records weren't
freed.
(text_index_rename): Lock around rename op.
(text_index_add_name): More typos.
(text_index_sync): Touch root when changing it.
(text_index_add_name): "
(text_index_delete_name): "
(camel_text_index_new): Touch root if we change it.
(text_index_cursor_reset): Make sure we NULL pointers after we
free them (nothing uses this yet).
* camel-partition-table.c (hash_key): Remove some debug
accidentally left in.
(camel_partition_table_add): When linking in the next block list,
set the right previous pointer.
(camel_key_table_add): Simplify the 'left' calculation (it was
already ok though).
(camel_key_table_next): Initialise returns before processing.
Broaden the lock slightly, and simplify validity calculations.
svn path=/trunk/; revision=16323
Diffstat (limited to 'camel/camel-partition-table.h')
-rw-r--r-- | camel/camel-partition-table.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/camel/camel-partition-table.h b/camel/camel-partition-table.h index ab6ac8c204..04e2b6cd88 100644 --- a/camel/camel-partition-table.h +++ b/camel/camel-partition-table.h @@ -141,6 +141,7 @@ struct _CamelKeyTableClass { CamelType camel_key_table_get_type(void); CamelKeyTable * camel_key_table_new(CamelBlockFile *bs, camel_block_t root); +int camel_key_table_sync(CamelKeyTable *ki); camel_key_t camel_key_table_add(CamelKeyTable *ki, const char *key, camel_block_t data, unsigned int flags); void camel_key_table_set_data(CamelKeyTable *ki, camel_key_t keyid, camel_block_t data); void camel_key_table_set_flags(CamelKeyTable *ki, camel_key_t keyid, unsigned int flags, unsigned int set); |